在python里用什么方式编码,就要用什么方式解码。 采用的编码方式:utf-8,gdk s = "中国" tmp = s.encode('utf-8') tmp1 = tmp.decode('utf-8')