def aa(nums): leng=len(nums) for i in range(leng): if i==nums[i]: print (i) i+=1 return None print(aa([0,1,2,3,4,5]))
原文地址:https://www.cnblogs.com/xzm123/p/9869255.html
时间: 2024-11-08 04:52:24
def aa(nums): leng=len(nums) for i in range(leng): if i==nums[i]: print (i) i+=1 return None print(aa([0,1,2,3,4,5]))
原文地址:https://www.cnblogs.com/xzm123/p/9869255.html