b = s.encode("UTF-8") e = base64.b64encode(b) print(e). 該程式碼將輸出以下內容:. b'SGVsbG8gV29ybGQh'. 它仍然在bytes 物件中。
確定! 回上一頁