import pymongo
#连接数据库环境标签:mongo,python,mydb1,查询,myclient1,pymongo From: https://www.cnblogs.com/drct/p/17082046.html
myclient1 = pymongo.MongoClient('mongodb://账号:密码@ip:端口/')
mydb1 = myclient1["slot"] //db
mycol1=mydb1["ota.versions"]//表
x=mycol1.find_one({"nodeEui":"121122230334"}) //查找
print(x.get('softVer')) //x返回的是字典,获取某个值