Python3.6全栈开发实例[002]

2.判断用户传入的对象(字符串、列表、元组)长度是否大于5。

li = [11,22,33,44,55,66,77,88,99,000,111,222]
def func2(lst):
    if len(lst) > 5:
        return True
    else:
        return False
print(func2(li))
原文地址:https://www.cnblogs.com/apollo1616/p/9460486.html