Home  >  Article  >  Backend Development  >  How to create a new document in python in linux

How to create a new document in python in linux

尚
Original
2019-06-27 16:39:163972browse

How to create a new document in python in linux

The method of creating a new document in python in Linux is as follows:

The first step is to create a folder test, then open the terminal and enter the file

How to create a new document in python in linux

The second step is to enter the command vim test.py

How to create a new document in python in linux

The third step is to edit the program

How to create a new document in python in linux

After editing, press Esc to switch to command mode, then enter :wq and press Enter to save automatically. Then enter python test.py to run the program

How to create a new document in python in linux

How to create a new document in python in linux

Result:

How to create a new document in python in linux

How to create a new document in python in linux

##More Python related technical articles , please visit the

Python Tutorial column to learn!

The above is the detailed content of How to create a new document in python in linux. 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