安装
pip install pymongo
本地连接
from pymongo inport MongoClient
client=MongoClient()
远程连接
client=MongoClient('mongdb://username:password@ip:port)
pip install pymongo
from pymongo inport MongoClient
client=MongoClient()
client=MongoClient('mongdb://username:password@ip:port)