1. 首页
  2. 数据库
  3. 其它
  4. python中pygame模块用法实例

python中pygame模块用法实例

上传者: 2020-12-31 04:07:46上传 PDF文件 54.08KB 热度 13次
本文实例讲述了python中pygame模块用法,分享给大家供大家参考。具体方法如下: import pygame, sys from pygame.locals import * #set up pygame pygame.init() windowSurface = pygame.display.set_mode((500, 400), 0, 32) pygame.display.set_caption("hello, world") BLACK = (0, 0, 0) WHITE = (255, 255, 255) RED = (255, 0, 0) GREEN = (0, 25
用户评论