from pymongo import MongoClientclient=MongoClient("mongodb://root:password@ip:27017")dblist = client.list_database_names()语句查看数据表内的记录数db.getCollection('resObject').find().count();