原文:TypeError: 'encoding' is an invalid keyword argument for this function 解決Python 2.7

在python . 中這樣調用代碼 open file name.txt , r ,encoding utf .read 會出現 TypeError: encoding is an invalid keyword argument for this function 這樣的錯誤 需要將代碼修改為 import io io.open file name.txt , r ,encoding utf . ...

2018-09-29 23:09 0 1728 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM