![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
收藏
wzgdavid
这个作者很懒,什么都没留下…
展开
-
(收藏)A Guide to Python's Magic Methods
from http://www.rafekettler.com/magicmethods.html A Guide to Python's Magic Methods Rafe Kettler Copyright © 2012 Rafe Kettler Version 1.17 A PDF version of this guide can be obtained from ...原创 2016-09-27 09:40:33 · 293 阅读 · 0 评论 -
转UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position
Python在安装时,默认的编码是ascii,当程序中出现非ascii编码时,python的处理常常会报这样的错UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range(128),python没办法处理非ascii编码的,此时需要自己设置将python的默认编码,一般设...原创 2017-05-31 10:00:21 · 186 阅读 · 0 评论