... 判斷事件是否為退出事件 if event.type == QUIT: # 退出pygame pygame.quit() # 退出系統 sys.exit() # 繪製螢幕內容 pygame.display.update().
確定! 回上一頁