python查找数据的位置
#查找对象位置,不在范围内会报错,后面通过异常处理错误就行 a = ["a","b","c","d","e"] b= [1,3,2,4] print(a.index("c",0,4)) #数据的查找
标签:
python查找数据的位置
python查找数据的位置
#查找对象位置,不在范围内会报错,后面通过异常处理错误就行 a = ["a","b","c","d","e"] b= [1,3,2,4] print(a.index("c",0,4)) #数据的查找