Python 中 中文乱码问题

在文件头加入

# -*- coding: cp936 -*-
# -*- coding: UTF-8 -*-
print('你好');

 

posted @ 2015-03-20 15:22  奔雷手  阅读(84)  评论(0编辑  收藏  举报