python str与bytes之间的转换
摘要:
# 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 alt 阅读全文
posted @ 2020-04-27 19:01 星河赵 阅读(1581) 评论(0) 推荐(0) 编辑