[Tutor] Print Output Location in Windows XP

geon geon at post.cz
Sat Sep 3 05:39:41 CEST 2005

Tom Strickland napsal(a):

>Up until now I have been running my Python programs in Linux. I just 
>wrote one in Windows XP and I can't find the print output. The Python 
>program has a print statement, and when I run the program a black window 
>opens and I can see printing going on. However, when it's finished 
>printing, the output window closes.
>How do I get the output window to stay open, or where is the output stored?
You could:

* put raw_input() statement on the last line in your program
* run python with "-i" argument . i means "stay interactive after run". 
example : python -i myfile.py

Hope this helps


More information about the Tutor mailing list