Python 3 uses UTF-8 format by default
Generally, you don’t need to add a word at the beginning– coding:utf-8 —
However, in some Chinese, there will still be unrecognizable cases, and the error of “non-utf-8 code starting with” \ \ xe7 “will be thrown. At this time, you need to add this sentence in the first line.
#-*- coding:utf-8 -*-