Python中的gbk转化成utf的方法: 1、先把字符用decode方法转换成unicode编码 gbk_to_utf8 = s_to_gbk.decode("gbk") 2、再将unicode格式的字符用encode方法转换成utf编码 gbk_to_utf8 = gbk_to_utf8.encode("utf-8") 3、打印字符 print(gbk_to_utf8) 结果如下: