Python Bool and int comparison and indexing on list with boolean values

后端 未结 4 924
离开以前
离开以前 2020-12-03 17:15

Indexing on list with boolean values works fine. Though the index should be an integer.

Following is what I tried in console:

>>> l = [1,2,3         


        
4条回答
提交回复
热议问题