TypeError: tuple indices must be integers, not str

后端 未结 5 612
孤街浪徒
孤街浪徒 2021-02-01 13:31

I am trying to pull data from a database and assign them to different lists. This specific error is giving me a lot of trouble \"TypeError: tuple indices must be integers, not s

5条回答
  •  你的背包
    2021-02-01 14:20

    Just adding a parameter like the below worked for me.

    cursor=conn.cursor(dictionary=True)
    

    I hope this would be helpful either.

提交回复
热议问题