简体   繁体   中英

running python program in IDLE

I want to paste my code from my text editor into the IDLE window, but when I do the program won't run. Is there a way to run my program without copying and pasting into the IDLE window. (I'm a complete NOOB)

To run a Python 3 program in IDLE, from the command line:

$ python3 -m idlelib -r your_script.py

For earlier Python versions, see How to start IDLE (Python editor) without using the shortcut on Windows Vista?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM