[問題] python的input突然無法輸入中文

看板Python作者 (kobe)時間8年前 (2017/05/15 00:00), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
第一次發問,有違規請提出 安裝anaconda3 原本有寫一隻程式,之前跑都沒問題 今天 其中有一行程式碼突然出了問題 a = input() print(u'{}'.format(a)) 當a輸入中文時,結果為 File "<string>", line 1 ? SyntaxError:unexcepted EOF while parsing 匯出的中文檔名也變成亂碼了 QQ 求解,感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.230.111.61 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1494777623.A.088.html

05/15 00:07, , 1F
Python 2 + Windows? 八成和你輸入什麼字有關
05/15 00:07, 1F

05/15 09:10, , 2F
Decode有試過嗎?
05/15 09:10, 2F
文章代碼(AID): #1P67yN28 (Python)
文章代碼(AID): #1P67yN28 (Python)