擅长:python、mysql、java
<p>有关<a href="https://github.com/mr0re1/NCR" rel="nofollow">https://github.com/mr0re1/NCR</a>的信息,请参阅应用程序/应用程序/蒙古族.py.
有简单的代码连接到MongoDB,并传递简单的操作。在</p>
<pre><code>connection = pymongo.Connection(settings.MONGOLOID['host'], settings.MONGOLOID['port'])
db = connection[settings.MONGOLOID['database']]
</code></pre>
<p>其中“主机”、“端口”和“数据库”的说明设置.py. 在</p>
<p>所有的操作都非常简单,比如<code>db['lexemes'].find(request)</code>,其中“lexemes”是集合名,“request”是字典。在</p>