把提示字符串強制為gbk編碼就好,unicode和utf-8都不可以。 # encoding:utf-8. s = raw_input(u"請輸入中文漢字:".encode('gbk')). print s. print ...
確定! 回上一頁