Python2.x
1. 默认编码为 ASCII
2. 显式声明编码类型为‘UTF-8’
# Add the below declaration to 1st line or 2nd line of source file
#-*- coding: utf-8 -*-
# Add the below declaration to 1st line or 2nd line of source file
#-*- coding: utf-8 -*-
本文标题:默认Python源文件编码
本文链接:https://www.haomeiwen.com/subject/eegifxtx.html
网友评论