标签: web-crawler python-3.7
这是我的代码:
with open(r"/Users/superg/Desktop/python/crawle/1hao.html","wb") as f: f.write(HtmlStr)
我想打开一个html文件。
这是我的错误:
TypeError: a bytes-like object is required, not 'str'