利用这个小游戏可以学习一下ython3.3中tkinter的使用方法复制代码 代码如下:# -*- coding: utf-8 -*-import tkinter as tkimport sysimport randomimport re
number = random.randint(0,1024)running = Truenum = 0nmaxn = 1024nminn = 0
def eBtnClose(event): root.destroy()def eBtnGuess(event): global nmaxn global nminn global num