import sys
import pygame
def run_game():
pygame.init()
screen = pygame.display.set_mode((1200,800))
pygame.display.set_caption('Alien Invasion')
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
pygame.display.flip()
run_game()
Traceback(most recent last call):
File "G:\python\python_work\alien_invasion.py", in line 14 <module> run_game()
File "G:\python\python_work\alien_invasion.py", in line 11 run_game pygame.display.flip()
keyboardInterrupt
求解!!!
我在网上四处搜寻没有得到解决的方案,请求各位大佬能提供支持!
这里谢谢了
相似问题