发布时间:2019-07-06 10:45:21编辑:auto阅读(2686)
# 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算数运算
55134
41936
36515
31916
26829
26491
25033
20659
16561
15974
3195°
2886°
2980°
3131°
3067°
3343°
3239°
3068°
3061°
3041°