2019-12-23,python连接mongdb

安装

pip install pymongo

本地连接

from pymongo inport MongoClient
client=MongoClient()

远程连接

client=MongoClient('mongdb://username:password@ip:port)

你可能感兴趣的:(2019-12-23,python连接mongdb)