发布时间:2019-07-06 10:45:21编辑:auto阅读(2273)
# 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算数运算
51996
51827
42086
38933
33436
30385
29027
24045
23966
22314
26°
36°
70°
89°
86°
108°
533°
2703°
3417°
2813°