📜  如何在 pygame 中关闭窗口 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:57.233000             🧑  作者: Mango

代码示例2
running = True
while running:
  for event in pygame.event.get():
    if event.type == pygame.QUIT:
      running = False
    if running == False:
      pygame.quit()