美文网首页
mongo与python 的交互

mongo与python 的交互

作者: 杜大个 | 来源:发表于2018-09-06 09:46 被阅读0次

与python交互 点击查看官方文档(http://api.mongodb.com/python/current/tutorial.html) 安装python包

sudo pip3 install pymongo

第一步的两种连接方式: The above code will connect on the default host and port. We can also specify the host and port explicitly, as follows:

client = MongoClient('localhost', 27017)

Or use the MongoDB URI format:

client = MongoClient('mongodb://localhost:27017/')

1929D5A4-427D-430B-9D9E-7C1295D5AEAB F3DB8049-B22B-48EC-A013-12BC3EA8C4CF B209126C-18FC-4869-935F-04533E50CBC6 72179705-FD39-4888-91FF-9E289E5287F2 949EAE7C-4FAE-4EDF-B0EF-66282C43EB1C 0B39E7D1-2AA2-4199-ADF4-FC881D7C826E

更多使用详情可以查看mongo的官方文档使用方法:官方文档(http://api.mongodb.com/python/current/tutorial.html)

相关文章

网友评论

      本文标题:mongo与python 的交互

      本文链接:https://www.haomeiwen.com/subject/ktmtgftx.html