Home  >  Article  >  Backend Development  >  How to use idle in python

How to use idle in python

藏色散人
藏色散人Original
2019-07-05 09:50:525665browse

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.

How to use idle in python

Write Python code in the created file

How to use idle in python

How to use idle in python

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.

How to use idle in python

Choose a file name and save successfully!

How to use idle in python

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.

How to use idle in python

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn