摘要:
Being educated under Java background, static method and class method are the same thing.But not so in Python, there is subtle difference:Sayfunction a... 阅读全文
摘要:
做爬虫抓取网页,print(html)进行调试,遇到UnicodeEncodeError:'gbk' codec can't encode character XX in position XX问题,颇为恼火。原因已查明:网页是utf-8编码形式,抓取后response.read().decode(... 阅读全文