内置函数 一, 文档说明 原始文档来自于 py thon v 2
2 中文译文和用法尚不完全,您可以自由修改和完善, 您可以在文档结尾鸣谢添上您的名字,我们将会感谢您做的 贡献
二,函数列表 1,取绝对值 abs(x) Return the absolute value of a number
The argument may be a plain or long integer or a floating point number
If the argument is a complex number, its magnitude is returned
如果你不知道绝对值什么意思,那就要补一下小学数学了
基本用法 2, all(iterable) Return True if all elements of the iterable are true (or if the iterable is empty)
Equivalent to: 3
any(iterable) Return True if any element of the iterable is true
If the iterable is empty, return False
Equivalent to: 4
basestring() This abstract type is the superclass for str and unicode
It cannot be called or instantiated, but it can be used to test whether an object is an instance of str or unicode
isinstance(obj, basestring) is equivalent to isins