pymongo使用sort()语句报错:not enough values to unpack (expected 2, got 1)的解决方法

最近在使用pymongo封装sort()语句时发现的错误: 找到解决方法: a = self.db[col].find(condition).sort([{’_id’: -1}]).limit(1) 但是又存在新的问题: 解决方法: 在本地pymongo库包的helpers.py文件中将for (key,value) in index_list:修改为for (key,value) in inde
相关文章
相关标签/搜索