我正在使用以下代码连接到mongo:
full = "mongodb+srv://myuser:mypass@hpechatops-dzlpw.mongodb.net/test?retryWrites=true"
client = MongoClient(full)
db = client.admin
serverStatusResult=db.command("serverStatus")
pprint(serverStatusResult)
我收到这个错误:
^{2}$这并不能告诉我太多,所以我很难弄清楚到底是怎么回事。这段代码源于教程,如https://scotch.io/tutorials/getting-started-with-python-and-mongodb。在
试试这个:
相关问题 更多 >
编程相关推荐