編輯完之后保存,最后關閉檔案在運行就成這樣了。
提示:
The fle's encoding is invalid for ython 3.x.
IDLE will convert it to UTF-8.
What is the current encoding of the file?
我添加內容運行之后關閉在打開就成圖一那樣了。
我添加的內容
open(路徑名)
d[file.write(entry)]=file.write(value)
file.flush()
d為字典,entry 為input輸入的東西
value為字典的值---也是用input輸入的string
有沒有哪位大佬知道怎么解決,剛學Python的小白,不小心寫的命令把自己寫的東西給干掉了,求幫忙,好不容易寫的呢,不想放棄。
拜托了,各位!

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/155854.html
