天干地支

图片

MyCode

1
2
3
4
5
6
7
8
9
10
11
TianGan=["jia","yi","bing","ding","wu","ji","geng","xin","ren","gui"]

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

year=int(input())-4

t=year%10

d=year%12

print(TianGan[t]+DiZhi[d])

天干地支
https://ianwusb.blog/2024/03/25/天干地支/
作者
Ianwusb
发布于
2024年3月25日
许可协议