发布时间:2019-07-06 10:45:21编辑:auto阅读(1963)
# bytes object b = b"example" # str object s = "example" # str to bytes bytes(s, encoding = "utf8") # bytes to str str(b, encoding = "utf-8") # an alternative method # str to bytes str.encode(s) # bytes to str bytes.decode(b)
上一篇: Python 三十六计
下一篇: Python06算数运算
49046
48194
38922
36054
30467
27248
26261
21091
20928
19262
121°
192°
145°
805°
878°
856°
867°
821°
793°
944°