给定一个整数数组,找出数组中不存在的最小的正整数

def serche(list1):
    num = 1
    while True:
        if num not in list1:
            print(num)
            break
        num+=1
原文地址:https://www.cnblogs.com/vanoraxnc/p/10387856.html