from pymongo import MongoClientmc = MongoClient('localhost',27017)db = mc.usersdb.users.save({ 'name':'test'})set = db.users.find()for s in set: print(s)
本文共 213 字,大约阅读时间需要 1 分钟。
from pymongo import MongoClientmc = MongoClient('localhost',27017)db = mc.usersdb.users.save({ 'name':'test'})set = db.users.find()for s in set: print(s)
转载于:https://www.cnblogs.com/tonghounb/p/5225434.html