1、中文问题

需要在文件头部加入以下代码,指定编码方式

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

str = u'中文'

posted on 2014-07-11 15:13  ~小二黑~  阅读(140)  评论(0)    收藏  举报