+ 1
Py.exe on windows close auto after printing the result (after 0.1 second ) ... Anyone know a order like pause or something !?
2 Answers
+ 2
os.system("PAUSE") in the os module. Or just use IDLE if you have it
+ 2
if you are compiling python code, input() at the end will help, program will wait for enter pressed, and only then will close.
a better idea is not to compile your code to binary file before final version, just leave it as text-script file, and run it from console: python my_script.py
since console will not close, you will see all output