在處理 unicode 的問題時, 最關鍵的部份是 輸入時必須 decode, 輸出時必須 encode。
另外,某些函數會隱性(implicitly)地將 unicode 轉成 byte string,例如: print(), str() (in Python2) 以及 repr()。
在處理 unicode 的問題時, 最關鍵的部份是 輸入時必須 decode, 輸出時必須 encode。
另外,某些函數會隱性(implicitly)地將 unicode 轉成 byte string,例如: print(), str() (in Python2) 以及 repr()。