Home >Backend Development >Python Tutorial >How to use idle in python
How to use idle in python?
pythonUse IDLE to run Python programs
IDLE creates a new Python file
After opening IDLE, click File in the upper left corner, and then click the first Select NewFile to create a python file. Or directly use the shortcut keys
Ctrl N
to quickly create.
Write Python code in the created file
Save the file
Use the shortcut keys directly
Ctrl S
to save quickly. You can also click File in the upper left corner of the window and then click Save to complete the saving.
Choose a file name and save successfully!
Run the saved Python file (program)
Run the Python program directly in IDLE. Click Run at the top of the window, then click RunModule to run the program. You can also use the shortcut key
F5
to run quickly.
Related recommendations: "Python Tutorial"
The above is the detailed content of How to use idle in python. For more information, please follow other related articles on the PHP Chinese website!