資源簡介
代碼片段和文件信息
from?Tkinter?import?*
from?tkMessageBox?import?*
class?Game:
????def?__init__(self):
????????self.A=[]
????????self.B=[]
????????self.record=set()
????????self.recor=set()
????????self.rec=self.record|self.recor
????????self.root=Tk()
????????self.root.geometry(“180x250“)
????????self.root.title(“Wu?Zi?Qi?Game“)
????????self.r=Canvas(self.rootwidth=180height=210bg=“purple“)
????????pic=PhotoImage(file=“beijing.gif“)
????????self.r.create_image(90100image=pic)
????????self.r.place(x=0y=15)
????????Label(self.roottext=“***Wu?Zi?Qi?Game***“fg=“red“).place(x=20y=0)
????????Button(self.roottext=“start“command=self.start).place(x=30y=230)
????????Button(self.roottext=“quit?“command=self.root.destroy).place(x=100y=230)
????????self.r.mainloop()
????def?start(s
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4842??2014-12-29?23:19??Python大作業之五子棋游戲\7.py
?????文件??????70378??2014-12-22?21:52??Python大作業之五子棋游戲\beijing.gif
?????文件??????47616??2015-01-01?19:18??Python大作業之五子棋游戲\Python?大作業.doc
?????目錄??????????0??2015-01-01?19:18??Python大作業之五子棋游戲
-----------?---------??----------?-----??----
???????????????122836????????????????????4
- 上一篇:python微博爬蟲(scrapy)
- 下一篇:python 飛機大戰 游戲源碼
評論
共有 條評論