📅  最后修改于: 2022-03-11 14:47:06.886000             🧑  作者: Mango
hostIPAddress = "0.0.0.0.0"
dbName = "testDB"
collectName = "testCollection"
client = pymongo.MongoClient("mongodb://" + hostIPAddress + "/")
target = client[dbName][collectName]