由於我們已經知道stdin 的編碼是使用UTF-8 , 因此對於型態是str 的字串物件,就可以透過decode 方法得到該字串的unicode string。 >>> '你'.decode("utf- ...
確定! 回上一頁