Home > Article > Backend Development > 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
The second step is to enter the command vim test.py
The third step is to edit the program
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
Result:
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!