MongoDB 脚本速查(PyMongo 4 + mongosh 实测版) 一、连接 ⚠️ authSource 必须写认证库:账号建在 admin 就写 ?authSource=admin,否则 A