Python
水星没有记
这个作者很懒,什么都没留下…
展开
-
Python自制猜单词小游戏
Python自制猜单词小游戏` import random WORDS = ("python","MATH","ENGLIH","CHINESE","COMPUTER","CONTINUE","ANSWER","EASY") print( """ 欢迎来到猜单词游戏 祝你好运 """ ) iscontinue="y" while iscontinue=="y" or iscontinue=="Y": word = random.choice(.原创 2021-05-18 21:46:32 · 191 阅读 · 0 评论 -
Python制作万年历
Python制作万年历 #定义月份字典 month_dict = {1:'January',2:'Febuary',3:'March',4:'April',5:'May',6:'June',\ 7:'July',8:'August',9:'September',10:'October',11:'November',12:'December'} #判断是否为闰年 def is_leaf_year(year): if (year % 4 == 0) and (year .原创 2021-05-18 21:21:12 · 1453 阅读 · 0 评论