def shengxiao(year): zodiac = ["鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊", "猴", "鸡", "狗", "猪"] index = (year-1900) % 12 return zodiac[①] myyear = int(input("请输入出生年份,输入0结束:")) while myyear != ②: print("你的生肖是:",③) myyear = int(input("请输入出生年份,输入0结束:")) |