pymongo的find直接输出list

恩,其实就这么方便:code

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

固然,按理不应所有find出来到内存的,这只是个例子。内存

相关文章
相关标签/搜索