第20月第4天 pycharm utf-8

1.运行python

%run a.py 运行

https://blog.csdn.net/little_bobo/article/details/78982412

 

2.UnicodeDecodeError: 'ascii' codec

#-*- encoding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')

https://blog.csdn.net/l769255844/article/details/76579327
posted @ 2018-05-04 10:00  lianhuaren  阅读(158)  评论(0编辑  收藏  举报