Home > Backend Development > Python Tutorial > How to generate program files in python idle

How to generate program files in python idle

coldplay.xixi
Release: 2020-08-25 13:06:56
Original
3904 people have browsed it

How to generate program files for python idle: First click to run IDLE and press [Ctrl N] to create a new file; then default to untitled and save it; then write the regular Python code; finally press the F5 key to run it. Can.

How to generate program files in python idle

【Related learning recommendations: python tutorial

How to generate program files from python idle:

1. First, search for IDLE in the win10 search box, and then click to run IDLE.

How to generate program files in python idle

#2. As shown in the picture, it is in test mode when it is first opened. This mode is relatively friendly and can be tested at will.

How to generate program files in python idle

#3. If you want to edit a more formal python file, you need to create a new one. "Ctrl N" is the new idle file.

How to generate program files in python idle

#4. After that, an additional window will appear. This window is different from the window that is opened for the first time. This window can edit python code.

The default is untitled, so you need Ctrl S to save it. The default is Python File type when saving.

How to generate program files in python idle

How to generate program files in python idle

5. After saving, write the regular Python code. Here I directly use print to test.

How to generate program files in python idle

#6. Then it is run. It is effective to run it as a module. The shortcut key is F5.

How to generate program files in python idle

#7. Then you will see the running result of the file in the previous Shell window, as well as the file path prompt.

How to generate program files in python idle

The above is the detailed content of How to generate program files in python idle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template