display模块中的set_mode()方法,然后传入一个由窗体高度和窗体宽度组成的元组。(我们设置窗体尺寸为800x600)。 import pygame from pygame.locals import * pygame.init()
確定! 回上一頁