Home > Common Problem > body text

How to save .py in python

silencement
Release: 2020-09-15 10:18:21
Original
41026 people have browsed it

How to save and run the written Python code? In what format do you want to save it? Let's take the IDE that comes with Python as an example to talk about this problem.

How to save .py in python

Double-click the desktop ide icon to open, shortcut key ctrl n Create a new folder, write our Python code in the newly created question markup, and write it After running F5, there will be the following prompt

How to save .py in python

Click OK, as follows,

How to save .py in python

Note : The file name of Python must end with .py, and the file type is Python files

Running result

How to save .py in python

When naming the file, The name should avoid conflict with Python keywords.

The above is the detailed content of How to save .py in python. 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