python脚本中的导入json在Intellij中不起作用
我将JSON库用于加载JSON文件。在Visual Studio代码中,它的工作原理非常完美,但是在Intellij Idea中,我有问题。
当我尝试使用时,我会收到错误:attributeError:模块'json'没有属性'loads'。
在Databricks中工作正常。
I use json library for load json files. In Visual Studio Code it works perfect, but in Intellij IDEA, I have problem.
When I try to use, I get error: AttributeError: module 'json' has no attribute 'loads'.
This is just in intellij problem. In databricks work fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在第一个屏幕截图中,您使用:“ json.load”
在最后的屏幕截图中,您使用:“ json.loads”
In the first screenshot you use: "json.load"
In the last screenshot you use: "json.loads"