AttributeError: module 'pymongo' has no attribute 'MongoClient'

查了很多内容,发现是脚本命名的问题,因为为了学习pymongo所以把脚本命名为pymongo.py,修改脚本名为test.py重新运行,成功。

猜你喜欢

转载自blog.csdn.net/u013155359/article/details/82351517