import json

s = {'name': 'jack'}
#将dict转换成str
l = json.dumps(s)
print(type(l))


#将str转换成dict

m = json.loads(l)
print(type(m))

相关文章:

  • 2021-12-11
  • 2021-06-04
  • 2021-12-26
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2021-09-27
  • 2021-11-21
  • 2022-02-13
  • 2021-05-21
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案