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

How to save python code?

little bottle
little bottleOriginal
2019-05-22 10:41:4124079browse

How to save python code?

As Python’s popularity soars, more and more people are starting to learn Python. In the process of learning, more and more problems arise. Next, I will take you through how to save Python code. You have to pay attention to the programming environment you use.

1. Under Windows system, if you write code directly using the command line, it cannot be saved.

2. Under Linux system, use vi to type esc, then: wq to save.

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

Related learning recommendations: python tutorial

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