Use distinct. In [27]: agent_ids = agents_collection.find().distinct('_id') In [28]: agent_ids Out[28]: ...
確定! 回上一頁