我正在使用Python 3.2并尝试在用户输入他们不想继续之后退出它,是否有代码将在while循环中的if语句中退出?我已经尝试过使用exit(),sys.exit(),sys.quit(),quit(),和提高SystemExit.
exit()
sys.exit()
sys.quit()
quit()
SystemExit
python python-3.x
python ×1
python-3.x ×1