import pymongo

connection = pymongo.MongoClient("127.0.0.1")
connection.database.authenticate("root","1234")
db = connection.database

相关文章: