print(foo['bar']) correctly returning value of 'bar', but on next line foo['bar'] is giving a KeyError

后端 未结 0 855
难免孤独
难免孤独 2020-12-06 19:03

I have a mongoDB collection populated with episodes of a tv show and I am trying to query this collection to return all episodes in a given season here is my code:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题