python hætta forrit
import sys
sys.exit()
hvernig á að stöðva áætlun í python
import sys
sys.exit()
python enda handritið
exit()
hvernig á að hætta að keyra kóða í 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
stöðvaðu forritið python
# Do stuff
stop = input("Would you like to stop the program? ")
if stop == "y":
exit()
else:
# do stuff
hvernig á að stöðva pythonw
taskkill /IM pythonw.exe /F