【发布时间】:2021-03-23 15:39:09
【问题描述】:
我有一个简单的 Pygame 程序:
#!/usr/bin/env python
import pygame
from pygame.locals import *
pygame.init()
win = pygame.display.set_mode((400,400))
pygame.display.set_caption("My first game")
但是每次我尝试运行它时,我都会得到这个:
pygame 2.0.0 (SDL 2.0.12, python 3.8.3)
Hello from the pygame community. https://www.pygame.org/contribute.html
然后什么都没有发生。 为什么我不能运行这个程序?
【问题讨论】: