Why does inserting a boolean value into the index operator return 1 or 2?

前端 未结 0 426
臣服心动
臣服心动 2021-01-27 01:44

So I just came across this and sorry if I\'m missing something here. If I try and access a list with a boolean it returns a value of either one or two. Such that my_list

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