西西coding 2019-12-11 18:46 采纳率: 0%
浏览 5957

python中exit()和quit()有什么区别?

import pygame
from pygame.locals import *

pygame.init()
screen = pygame.display.set_mode((800, 600)) 

for event in pygame.event.get():
    if event.type == QUIT:
            exit()
    if event.type == QUIT:
            quit()

两个都可以实现退出窗口,到底有什么区别呢???

  • 写回答

2条回答 默认 最新

  • 树扇风吹云起 2021-01-28 14:20
    关注

    你这回答跟题目对不上呀

    评论

报告相同问题?