总结一下内置函数,build-in function。一、数学运算类abs(x)求绝对值complex([real[, imag]])创建一个复数pmod(a, b)分别取商和余数注意:整型、浮点型都可以float([x])将一个字符串或数...
英文文档:hex(x)Convert an integer number to a lowercase hexadecimal string prefixed with “0x”, for exampleIf x is not a Pyth...
英文文档:help([object]) Invoke the built-in help system. (This function is intended for interactive use.) If no argument is...
英文文档:hash(object)Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly...
英文文档:hasattr(object, name)The arguments are an object and a string. The result is True if the string is the name of one...
英文文档:globals()Return a dictionary representing the current global symbol table. This is always the dictionary of the cur...
英文文档:getattr(object, name[, default])Return the value of the named attribute of object. name must be a string. If the st...
英文文档:class frozenset([iterable])Return a new frozenset object, optionally with elements taken from iterable. frozenset i...
英文文档:format(value[, format_spec]) Convert a value to a “formatted” representation, as controlled by format_spec. The int...
英文文档:class bytes([source[, encoding[, errors]]]) Return a new “bytes” object, which is an immutable sequence of integ...