Home>Article>Backend Development> How to save python code
Python is a computer programming language. For novice python developers, how to save python code? Here are the detailed methods:
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!