[python] 3转换为字节bytes

1、 b"str"
2、 bytes(str.encoding = "utf-8")
3、 str.encode("utf-8")
 

posted @ 2019-05-09 21:27  Moke丶青  阅读(184)  评论(0编辑  收藏  举报