发布时间:2019-07-06 10:45:21编辑:auto阅读(2234)
# 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算数运算
51885
51627
41979
38802
33291
30261
28912
23920
23838
22201
307°
2512°
3176°
2645°
2621°
3343°
2603°
3435°
5648°
5446°