解決辦法:
在open函數裏面加一個encoding=‘UTF-8’
with open("login.html", "r", encoding='UTF-8') as f:
data = f.read()
或者:將讀取形式改爲“rb”
with open("login.html", "rb") as f:
data = f.read()
在open函數裏面加一個encoding=‘UTF-8’
with open("login.html", "r", encoding='UTF-8') as f:
data = f.read()
或者:將讀取形式改爲“rb”
with open("login.html", "rb") as f:
data = f.read()
繼續運行 🥋 回憶上次內容 上上次 真寫了 萬行 代碼 這 萬行 代碼 都是寫在 明面 上的 這次 使用git命令 下載了 github上面的倉庫