programme de sortie python
import sys
sys.exit()
comment arrêter le programme en python
import sys
sys.exit()
script de fin python
exit()
comment arrêter d'exécuter du code en python
#to stop all execution of code
exit()
# Do stuff
stop = input("Would you like to stop the program? ")
if stop == "y":
exit()
else:
# do stuff
arrêter le programme python
# Do stuff
stop = input("Would you like to stop the program? ")
if stop == "y":
exit()
else:
# do stuff
comment arrêter pythonw
taskkill /IM pythonw.exe /F