Create a file and run py

In Linux, you can directly use vim or vi to edit a python file

  1. vim hello.py

    enter the edit page
#coding:utf-8
print("你好")

(As in Linux, may not support Chinese, we can add [#coding: utf-8])

after exiting, enter python hello.py

operating results:

你好

to be continued......

Guess you like

Origin www.cnblogs.com/mu-ran-2501590635/p/11965979.html