TypeError: distinct() takes exactly 2 arguments (3 given)

出现原因,错误的写法:

table.distinct('snp',{'pid':'xxx'})

正确的写法

table.find({'pid':'xxx'}).distinct('snp')



你可能感兴趣的:(TypeError: distinct() takes exactly 2 arguments (3 given))