原文:【Python】解决UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 0: ordinal not in range(128)

指定文件字符集为utf 在文件头部加入以下代码: import sys reload sys sys.setdefaultencoding utf ...

2017-12-28 20:57 0 3570 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM