发布时间:2019-07-06 10:45:21编辑:auto阅读(2107)
# 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算数运算
51321
50774
41368
38173
32657
29546
28390
23264
23233
21559
1633°
2368°
1973°
1914°
2243°
1950°
2644°
4431°
4271°
3041°