用户:
开朗的安谧修查看:0 回复:0 评论:0 创建时间:2022-08-05T12:57:40
【作品展示】

【作品介绍】
查询你的星座!(请写数字)
【作品源代码】
def bgh(moths, day):
pee = ('摩羯座', '水瓶座', '双鱼座', '白羊座', '金牛座', '双子座',
'巨蟹座', '狮子座', '喵座', '天秤座', '天蝎座', '射手座', '摩羯座')
pve = (20, 19, 21, 20, 21, 22, 23, 23, 23, 24, 23, 22)
if day < pve[moths-1]:
return pee[moths-1]
else:
return pee[moths]
moths = input('请输入月份:')
day = input('请输入日期:')
pvp = str(moths)+'月'+str(day)+'日'+'对应的星座是:'+bgh(int(moths), int(day))
print(pvp)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn