📜  如何在列表python代码示例中添加找到最小的int n

📅  最后修改于: 2022-03-11 14:45:22.064000             🧑  作者: Mango

代码示例1
def mymin(numlist):
    numnum = numlist[0]
    if len(numlist) > 0:
        for i in numlist:
            if i < numnum:
                numnum = i
    return numnum