如果.py 檔案想要是UTF-8 以外的編碼,同樣必須在第一行放置編碼聲明。 # coding=Big5 text = '測試' print(len(text)) # 顯示2. Python 3.x 中的字串都是Unicode, ...
確定! 回上一頁