重点在于open 方法加上encoding="utf-8"
 with open("webrenren.html",'w',encoding="utf-8") as f:
        f.write(html)