空的列表返回true
print(all([1, 2, 0])) # 列表中的0是False,所以返回False
print(all([1, 2, 5])) # 列表中的所有值都是True,所以返回...空的列表返回false
any()列表中的任意一个为True,就返回True
print(any([1, 2, 0]))
print(any([1, 2, 5])) # 列表中的任意一个是True...# s的内存地址是不变的
>>> s[0]=67
>>> id(s)
2879739806752
22.map()通过匿名函数lambda来对列表中的数据进行操作
map()
>>> list(map(...: 'int' object is not iterable
26.callable()判断是否可调用,即通过abs()方式调用,函数是可调用的,可用于判断是否是函数
callable()判断是否可调用...: 'int' object is not iterable
>>> set({1:2,3:4})
{1, 3}
>>>