发布时间:2019-07-06 10:45:21编辑:auto阅读(2062)
# 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算数运算
50469
49760
40354
37385
31804
28663
27597
22383
22379
20684
449°
1064°
862°
802°
1044°
918°
1534°
2872°
2572°
1971°