要將字串轉換為位元組,我們必須使用Python 的內建編碼函式對其進行編碼。 ... b = s.encode("UTF-8") e = base64.b64encode(b) print(e).
確定! 回上一頁