标签:编码方式 而且 jpg tail class 转换 logs blog nbsp
# 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)
标签:编码方式 而且 jpg tail class 转换 logs blog nbsp
原文地址:http://www.cnblogs.com/think-and-do/p/6362950.html