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 alternative method # str ... 阅读全文
posted @ 2019-08-02 19:58 稻草人MNMN 阅读(180) 评论(0) 推荐(0)
浙公网安备 33010602011771号