+ 1

Py.exe on windows close auto after printing the result (after 0.1 second ) ... Anyone know a order like pause or something !?

python

25th Nov 2016, 9:02 PM
Hadj Hadji
Hadj Hadji - avatar
2 Réponses
+ 2
os.system("PAUSE") in the os module. Or just use IDLE if you have it
25th Nov 2016, 9:15 PM
Amaras A
Amaras A - avatar
+ 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
25th Nov 2016, 9:17 PM
Demeth
Demeth - avatar