Python 3.x. import base64 text = 'Hello' # 'Hello' type(text) # <class 'str'> # convert str to bytes bstr = text.encode('utf-8') # b'Hello' ...
確定! 回上一頁