擅长:python、mysql、java
<p>创建一个名为<code>OnlineUser</code>的新文档,将<code>__collection__</code>字段设置为<code>online_users</code>,然后必须将<code>User</code>和{<cd5>}与{<cd6>}或<code>DBRef</code>相关联。MongoKit<a href="http://namlook.github.io/mongokit/structure.html" rel="nofollow">supports both</a>到-</p>
<ul>
<li>在pymongo.objectid.objectid在</li>
<li>在bson.dbref.dbref在</li>
</ul>
<p>您还可以将任何其他字段类型的<code>list</code>用作字段。在</p>