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