我想从mongo查询数据并将它们过滤到多个堆栈中 逻辑如下:
objs = collection.find({"name":"BOB"})
t_list = ["Math","History"]
for t in t_list :
subjects = objs.find({{"subjects":t}})
# do_somethig(subjects)
但是pymongo会引发错误AttributeError: 'Cursor' object has no attribute 'find'
我想知道pymongo可以这样做吗? (查询一次,然后过滤我想要的数据??)