直接str.decode() 找不到decode() 方法,因此要用如下方法ide
测试程序:测试
test = '\u5220\u9664' test.encode('utf-8').decode('unicode_escape') print(test)
打印结果:code
删除