摘要:
引用PyMongo>>>importpymongo创建连接Connection>>> importpymongo>>> conn=pymongo.Connection('localhost',27017)或>>> frompymongoimportConnection>>> conn=Connection('localhost',27017)创建Connection时,指定host及port参数>>> importpymongo>>> c 阅读全文
摘要:
PyMongo下载PyMongo下载地址: http://pypi.python.org/pypi/pymongo/#downloads当前可下载选项:pymongo-1.11.tar.gz Sourcepymongo-1.11.win32-py2.7.exe MS Windows installerPyMongo安装安装pymongo-1.11.tar.gz解压之后,cmd运行语句:C:\Users\libing>cd/dE:\pymongo-1.11E:\pymongo-1.11>pythonsetup.pyinstall安装pymongo-1.11.win32-py2.7.e 阅读全文