连接mongodb:
client=pymongo.MongoClient(host,port)
db=client['spz']
collection=db['stu_info']
collection.insert({})
collection.find({'k','v'})
collection.delete({})
collection.update({'sex':'nav'},{})
posted on 2018-07-25 06:33 smileBB 阅读(71) 评论(0) 编辑 收藏 举报