y是一组数组想在第a个到第b个之间 找y值大于c时的位置 就是是第几个 该怎么写
这样子吗
a=[123,45,1235,423,1234] for i in [2,4]: print(a[i]) if a[i]>5: print(i)