📜  python mongodb docker - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:12.692000             🧑  作者: Mango

代码示例1
client = MongoClient(
  host = ["ip:port"],
  username = "objectrocket",
  password = "1234",
)
client.admin.command('ping')