因为你自己py的名字叫pymongo,自己引用自己, 当然会报错了改名就好了
换文件名为其他名称,换个姿势,你就明白了!from pymongo import MongoClientclient = MongoClient('ip','port')db = client.databasecollection = db.collection
the moor. The air had turned chill and we