摘要: >>> a = u"中文" >>> print(a) 中文 >>> a_utf_8 = a.encode("utf-8") >>> print(a_utf_8.decode("utf-8")) 中文 >>> a_gb2312 = a.encode('gb2312') >>> print(a_gb23 阅读全文
posted @ 2017-08-28 17:08 压力山大80 阅读(241) 评论(0) 推荐(0)
摘要: Beautiful Soup 4.4.0 文档 阅读全文
posted @ 2017-08-28 14:03 压力山大80 阅读(88) 评论(0) 推荐(0)