python2与python3使用差异汇总

版权声明:本文为博主原创文章,未经博主允许不得转载。 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

猜你喜欢

转载自blog.csdn.net/hzhj2007/article/details/88682290
今日推荐