摘要: 在python中,str.encode("UTF-8") 意思是将str的UTF-8编码解码为unicode编码,str.decode("UTF-8")将str的unicode编码为UTF-8。python以unicode编码为基础。 转自:https://www.cnblogs.com/liaoh 阅读全文