def aa(nums,n): for i in range(n): if i ==nums[i]: i +=1 else: return i print(aa([0,1,2,3,4,5,7],8))
原文地址:https://www.cnblogs.com/xzm123/p/9869226.html
时间: 2024-11-08 19:11:12
def aa(nums,n): for i in range(n): if i ==nums[i]: i +=1 else: return i print(aa([0,1,2,3,4,5,7],8))
原文地址:https://www.cnblogs.com/xzm123/p/9869226.html