1、 默认情况,指mongod运行在localhost且端口为27017). 只需要提供需要连接的数据库名即可: from mongoengine import connect connect('project1') ...
確定! 回上一頁