python文件编码转换流程

python文件编码转换流程

python默认字符创编码是unicode

python文件编码跟变量编码是两个东西

exampl

#-*- coding:utf-8 -*-

ss = "你好"      #这个变量的默认编码是unicode

#此python文件的默认编码是utf-8

 

posted @ 2018-01-17 12:15  谁动了我的卤煮  阅读(96)  评论(0)    收藏  举报