pygame Python视频游戏等多媒体开发库
pygame简介
pygame,Python跨平台的,可开发视频游戏等多媒体应用程序的第三方库。
pygame应用实例
import pygame
# pygame setup
pygame.init()
screen = pygame.display.set_mode((1280, 720))
clock = pygame.time.Clock()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
screen.fill("purple")
pygame.display.flip()
clock.tick(60)
pygame.quit()
pygame Github统计数据
This library is distributed under GNU LGPL version 2.1
Github 6.6k stars
pygame安装命令
python3 -m pip install -U pygame --user 或 pip install pygame
pygame Pythn版本要求
Python 3+
免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。