蓝桥杯刷题--python-5

0天干地支 - 蓝桥云课 (lanqiao.cn)

import os

import sys

# 请在此输入您的代码

I1=['jia','yi','bing','ding','wu','ji','geng','xin','ren','gui']

I2=['zi','chou','yin','mao','chen','si','wu','wei','shen','you','xu','hai']

n=int(input())

n_=n-1900

n_=n_%60

i1=(n_+6)%10

i2=(n_) %12

print(''.join(I1[i1]+I2[i2]))

 0明明的随机数 - 蓝桥云课 (lanqiao.cn)

 

import os

import sy

你可能感兴趣的:(蓝桥杯,python)