python 编写一个程序,判断一个给定的年份属于哪一个生肖?

如题所述

def shengxiao(year):

return u'猴鸡狗猪鼠牛虎兔龙蛇马羊'[year%12]

shengxiao(1990)
温馨提示:答案为网友推荐,仅供参考
相似回答