python2 解决TypeError: 'encoding' is an invalid keyword argument for this function

python 2.7版本html with open(‘结果.html’, ‘w’, encoding=‘utf-8’) as f: f.write(html) 运行的时候报错: TypeError: ‘encoding’ is an invalid keyword argument for this function 1python 解决: import io with io.open(‘结果.
相关文章
相关标签/搜索