How to avoid the error of an element not being in a list when using list.index()?

前端 未结 0 1345
天命终不由人
天命终不由人 2021-01-20 17:40

I have a list of words :

mylist = ["apple","orange","banana"]

I want to know the position of some elements, som

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