我安装在 Nexus 5 QPython 上并尝试运行此代码:
import pygame
size = width, height = 400, 400
window = pygame.display.set_mode(size)
pygame.display.set_caption('hello, pygame!')
screen = pygame.Surface((400,400))
done = True
while done:
for e in pygame.event.get():
if e.type == pygame.QUIT:
done = False
screen.fill((0,255,0))
window.blit(screen, (0,0))
pygame.display.flip()
但是,如果我将此代码冲洗到 PC 上,那没关系