pymongo的find直接输出list

恩,其实就这么方便:

results = list(db.collection.find())

当然,按理不该全部find出来到内存的,这只是个例子。

评论

暂无评论