版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hzhj2007/article/details/88682290
方法1:转换编码为unicode
Either transform into Unicode (json.dumps(x.decode("utf-8"))),
or into an integer array (json.dumps(list(x))).
方法2:pip3 install simplejson
import simplejson as json