查了很多内容,发现是脚本命名的问题,因为为了学习pymongo所以把脚本命名为pymongo.py,修改脚本名为test.py重新运行,成功。
AttributeError: module 'pymongo' has no attribute 'MongoClient'
猜你喜欢
转载自blog.csdn.net/u013155359/article/details/82351517
今日推荐
周排行