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(‘結果.
相關文章
相關標籤/搜索