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

后端 未结 2 501
臣服心动
臣服心动 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/

    0 讨论(0)
  • 2020-12-12 05:15

    You should run it from command window/terminal instead of double clicking on the file.

    0 讨论(0)
提交回复
热议问题