摘要: import chardet import urllib.request url='http://stock.sohu.com/news/' html = urllib.request.urlopen(url).read() chardit1 = chardet.detect(html) print(chardit1['encoding']) 阅读全文
posted @ 2016-10-14 12:53 疯陈演义 阅读(249) 评论(0) 推荐(0) 编辑