一、安裝
參考文獻:https://www.cnblogs.com/charliedaifu/p/9938542.html Pygame安裝教程
習慣安裝在gym環境裏
二、demo
0、窗口位置 https://blog.csdn.net/qq_34404196/article/details/80718380
1、貪喫蛇 https://www.cnblogs.com/ansver/p/8438830.html
用到draw、event模塊
2、python-pygame實現鍵盤控制小球移動 https://blog.csdn.net/weixin_43201103/article/details/101623587
用到display,key模塊
3、python pygame實現方向鍵控制小球 https://www.zhangshengrong.com/p/q0Xpqmr71K/
用到blit模塊(背景圖片)
4、Python GUI編程(Tkinter) https://www.runoob.com/python/python-gui-tkinter.html
5、用Python中的tkinter模塊作圖 https://www.cnblogs.com/OctoptusLian/p/6366351.html
模塊
6、打方塊 python使用tkinter寫的彈跳遊戲。 https://www.cnblogs.com/caesura-k/p/8893027.html
7、Python:pygame界面顯示文字詳解 https://www.jb51.net/article/151101.htm
8、pygame中Rect(left, top, width, height)的參數詳解 https://blog.csdn.net/qq_34404196/article/details/80718380