In Linux, you can directly use vim or vi to edit a python file
- 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......