programa de salida de python
import sys
sys.exit()
cómo detener el programa en python
import sys
sys.exit()
script final de python
exit()
cómo dejar de ejecutar código 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
detener programa python
# Do stuff
stop = input("Would you like to stop the program? ")
if stop == "y":
exit()
else:
# do stuff
cómo dejar de pythonw
taskkill /IM pythonw.exe /F
cómo detener a pythonw
taskkill /IM pythonw.exe /F