[Python] bytes 转换成 str
摘要:
b = b"example" # bytes object s = "example" # str object sb = bytes(s, encoding = "utf8") # str to bytes 或者:sb = str.encode(s) # str to bytes bs = str(b, encoding = "utf... 阅读全文
posted @ 2019-07-29 10:44 liujx2019 阅读(2897) 评论(0) 推荐(0)
浙公网安备 33010602011771号