0
錯誤讀取:爲什麼這個系統錯誤出現?
File "FinalProject.py", line 81
if e.type == QUIT: raise SystemExit, "QUIT"
^
SyntaxError: invalid syntax
我對行的代碼如下所示:
for e in pygame.event.get():
if e.type == QUIT: raise SystemExit, "QUIT"
的語法是2.x的,但它似乎您試圖在3.X – Wondercricket
運行'提高SystemExit(「退出」)'? – kindall
@kindall工作感謝! – voldemort