1. simple example
import pymongo from pymongo import MongoClient con=MongoClient(‘localhost‘,27017) db=con.db# database name "db" names=db.users # collection name "users" item=names.find_one() print item[‘name‘]
2022-10-08 09:07:05
1. simple example
import pymongo from pymongo import MongoClient con=MongoClient(‘localhost‘,27017) db=con.db# database name "db" names=db.users # collection name "users" item=names.find_one() print item[‘name‘]
下一篇:自增变量