一般来说使用json.loads(str)可以得到一个dict,但是不知道为啥一直得到的是unicode对象,在terminal中就可以得到dict。

垃圾python,垃圾python,垃圾python

解决方法:

tmp = json.loads(json.loads(tt.encode('utf-8')).encode('utf-8'))

 

相关文章:

  • 2021-08-10
  • 2021-09-06
  • 2022-02-23
  • 2021-09-16
  • 2021-12-07
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2021-07-18
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-09-29
  • 2021-11-04
相关资源
相似解决方案