why same index is being shown by python in this tuple?

前端 未结 0 679
时光说笑
时光说笑 2021-01-12 09:31

in: my_tuple=(\'a\',9,1,True,\'a\', [2,5])

in: my_tuple.index(1), my_tuple.index(True)

out: (2, 2)

can anyone explain what exactly is going on? Why in

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