#导入应该用的函数pymongo,timefrom pymongo import MongoClient#连接mongodbconn = MongoClient(host='127.0.0.1', port=27107, tz_aware=False)#连接数据库db = conn.saas_form#输入数据库的账户名和密码db.authenticate('我是账号', '我是密码')#查询某张表单account = db.get_collection('我是表单名')