Chinese encoding

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_45626106/article/details/102748369

# Chinese coding
on article describes how to print out hello world
if it is output Chinese characters Hello! If the world does not have Chinese garbled coding error occurs

Chinese encoding format
python Chinese ASCll format encoding format is entered in the header file

#--coding:utf-8--

or

#coding=utf-8

No spaces on both sides of the equal sign
means that the role of Chinese encoding is if you want to print out the Chinese character coding necessary to add Chinese

Guess you like

Origin blog.csdn.net/qq_45626106/article/details/102748369