Python - I can't see my what my error is because the window disappears immediately

后端 未结 2 504
臣服心动
臣服心动 2020-12-12 04:42

I am pretty new to Python and I have been pretty annoyed with this problem. I am not sure if this matters, but I run my .py file with Python 2.7.6 with python installed on m

2条回答
  •  再見小時候
    2020-12-12 05:03

    Yes, as @shortfellow said, running it from the terminal should work:

    python your_file.py

    Another tip that helps in Python, if you are having a hard time with errors, is to use iPython for debugging/testing code on the spot. You can give it a try.

    http://ipython.org/

提交回复
热议问题