在python3編譯一下代碼,總是執行不了,請幫忙看看是什么原因?謝謝。
import sys
import pygame
def run_game():
pygame.init()
screen = pygame.display.set_mode((1200,800))
pygame.display.set_caption("Alien Invasion1")
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
pygame.display.flip()
run_game()
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/203828.html
標籤:其他開發語言
