摘要: 代码 import sys import pygame pygame.init() screen = pygame.display.set_mode((600, 480), 0, 32) pygame.display.set_caption('my game') screen.fill('white 阅读全文
posted @ 2022-05-24 16:18 编程驴子 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 代码 import sys import pygame pygame.init() screen = pygame.display.set_mode((600, 480), 0, 32) pygame.display.set_caption('my game') screen.fill('white 阅读全文
posted @ 2022-05-24 15:57 编程驴子 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 本学习笔记主要内容来源: http://m.biancheng.net/pygame/ 代码: import sys import pygame #初始化pygame pygame.init() #创建surface对象, 设置窗口, 大小(600, 480) screen = pygame.dis 阅读全文
posted @ 2022-05-24 15:08 编程驴子 阅读(57) 评论(0) 推荐(0) 编辑