TypeError: 'builtin_function_or_method' object is not subscriptable

后端 未结 8 1129
太阳男子
太阳男子 2020-12-09 02:06
elif( listb[0] == \"-test\"):
    run_all.set(\"testview\")
    listb.pop[0]

ERROR: Exception in Tkinter callback T

8条回答
  •  遥遥无期
    2020-12-09 02:17

    This error arises when you don't use brackets with pop operation. Write the code in this manner.

    listb.pop(0)
    

    This is a valid python expression.

提交回复
热议问题