摘要:
import calendarprint("本程序可判定某年是不是闰年")nf=input("请输入您要判定的年份:")nf=int(nf)#("{}年".format(calendar.isleap(nf)))if nf/100!=0 and nf/4=0 or nf/100==0 and nf/ 阅读全文
摘要:
import tkinterimport threading import datetimeimport timeapp=tkinter.Tk()app.overrideredirect(True)app.attributes('-alpha',0.9)app.attributes('-topmos 阅读全文
摘要:
import pygame from sys import exitimport randomclass Point(): row = 0 clo = 0 def __init__(self, row, clo): self.row = row self.clo = clo def copy(sel 阅读全文
摘要:
下载步骤 1·在“开始”’中的“搜索程序和文件”上写“cmd”,找到程序“cmd.exe” 2·右键“cmd.exe”,点击“以管理员身份运行” 3·在记事本中写“pip install pygame”,复制这句话 4·在“cmd.exe”的"Microsoft Windows [版本 6.1.76 阅读全文
摘要:
import randomi = 0minx=1maxx=100 #若要更改游戏范围,请改maxx的值!!print("欢迎来到1—%d猜数字游戏"%maxx)num = random.randint(1,maxx)while 1 : i += 1 x = int(input("请输入你猜的数字:" 阅读全文