0
我得到一個錯誤:解壓縮的值過多。然後也:我該如何解決錯誤:解壓縮的值太多:self .__ ordering = helpers._index_document(keys)
自.__排序= helpers._index_document(鍵)
注:我想利用這個環節。
Python ValueError: too many values to unpack
守則如下:
docs = grades.find({'type':"homework",'student_id':i})
docs = docs.sort(['score',-1])
counter = grades.find({'type':"homework",'student_id':i})
counter = counter.sort(['score',-1]).count()
向我們顯示整個錯誤消息。 – user2357112 2015-03-30 23:47:38
[請不要轉發!](http://stackoverflow.com/questions/29356854/valueerror-too-many-values-to-unpack) – gradi3nt 2015-03-30 23:56:59