空的列表返回false
any()列表中的任意一个为True,就返回True
print(any([1, 2, 0]))
print(any([1, 2, 5])) # 列表中的任意一个是True...: 'list' object is not callable
>>> l[s]
[3, 5]
10.divmod()求商和余数
>>> divmod(10,3)
(3, 1)
>>> divmod(10,2...4), (15, 3), (9, 2), (1, 0)]
Process finished with exit code 0
13.ascii()转换为ascii码
>>> ascii("qwqw我"...: 'int' object is not iterable
26.callable()判断是否可调用,即通过abs()方式调用,函数是可调用的,可用于判断是否是函数
callable()判断是否可调用...,即通过abc()方式调用
函数是可调用的,可用于判断是否是函数
>>> callable(abs)
True
>>> callable(list)
True
>>> callable([1,2,3])