Home>Article>Backend Development> How to save python code

How to save python code

anonymity
anonymity Original
2019-06-17 13:53:55 21751browse

Python is a computer programming language. For novice python developers, how to save python code? Here are the detailed methods:

How to save python code

Under Windows system:

1. If you are using an integrated development environment, go directly to the C drive folder. Find the corresponding program file and it will be automatically saved;

2. If you are using the GUI that comes with python, you can also find the file as above, but you can also save it as (save as).py file to your own address;

3. If you are using the command line, you can click the menu "Select All" and "Copy" to a new txt file, then save the .txt file, and Just change the file extension .txt to .py.

4. If you are using an IDE, under normal circumstances, just save it directly or ctrl S, and the suffix is .py.

Under Linux system:

Use vi to type esc, then: wq to save.

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