So beenden das Programm in Python
import sys sys.exit() //This will exit the python program
Repulsive Rabbit
import sys sys.exit() //This will exit the python program
import atexit
def exit_handler():
print 'My application is ending!'
atexit.register(exit_handler)