原文:【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