最近在学习python解析json的时候遇到问题,

提示 AttributeError: module 'json' has no attribute 'dumps' (模块没有dumps属性的意思)

解决方法:

我新建的文件叫做json.py,解析json的模块也叫json.py,两个文件冲突了,改一下文件名就可以了。(>_<)

 

相关文章:

  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
  • 2021-10-09
  • 2021-09-09
  • 2021-10-09
  • 2021-12-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2021-09-15
相关资源
相似解决方案