python爬虫---python3.5---eclipse

解析中文会出现xbec890hd........

这个和你的编码选择有关。如果是解析成html,则需

fout = open('output.html', 'w',encoding='utf-8')

在head加

fout.write("<meta http-equiv=" + "Content-Type" + " content=" + "text/html;charset=UTF-8" + ">")

原文地址:https://www.cnblogs.com/rainday1/p/5760053.html