发布时间:2019-07-06 10:45:21编辑:auto阅读(1861)
# 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算数运算
48207
46962
37860
35160
29682
26345
25280
20303
19973
18431
56°
6064°
6774°
6261°
6234°
7356°
6183°
6314°
6786°
6792°