我正在尝试使用pymongo进行简单查询并遍历结果。这是我正在使用的代码:data=[]tam=db.my_collection.find({'timestamp':{'$gte':start,'$lte':end}}).count()fori,dinenumerate(table.find({'timestamp':{'$gte':start,'$lte':end}}):print('%sof%s'%(i,tam))data.append(d)开始和结束变量是日期时间python对象。一切正常,直到我得到以下输出:2987of128482988of128482989of1284829