发布时间:2019-07-06 10:45:21编辑:auto阅读(1990)
# 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算数运算
49580
48799
39473
36548
30943
27770
26742
21558
21448
19799
484°
885°
825°
853°
1754°
950°
1638°
1859°
1471°
1420°