 查了一下,大概和golang使用utf-8編碼,而windows使用GBK/Unicode處理中文編碼有關 是否可以通過在輸出回顯的時候進行轉換的方式,來在windows下支持輸入中文。 https://golang.org/x/text/encoding/simplifiedchinese