发布时间:2019-07-06 10:45:21编辑:auto阅读(2196)
# 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算数运算
51732
51397
41821
38592
33077
30083
28750
23747
23658
22027
39°
2253°
2944°
2455°
2397°
2986°
2409°
3210°
5281°
5105°