3 ответов
+ 7
There's a module sys that allows the same technique:
from sys import exit
exit(0)
+ 3
exit() does the trick (tested in SL and Pythonista).
+ 2
It depends on the specific runtime if exit is available just like that.
There's also 'quit'.