Python built-in functions
1.abs Absolute Value
2.all
determines whether all data in the iterator is true
returns True if all data of the data that can be iterated is true or the data that is iterated is empty. Otherwise returns false
3.any
determine if a data in the iterator is true
returns True if there is one data in the iterated data that is true. Otherwise, false is returned. The data that can be iterated is empty and also returns false
4.bin Convert Integer to a binary string (other data type error)
5.bool
converts a data to a Boolean bool that is a subclass of int, and returns False if the argument is false or does not specify a parameter
6.bytearray converting data to byte arrays
7.bytes convert data to byte array bytes is the immutable version of ByteArray
8.callable
determines whether an object can call a class that is callable. If the class of an object has a __call__ function that is callable
returns True if an object can be called. Otherwise returns false
9.chr convert integers to characters
10.classmethod
the class method class that gets the function accepts class as the first parameter, just like instance method accepts instance.
11.compil
compiling the source code or AST object code can be performed by calling exec () and eval ().
12.complex
creating a complex number create a complex number with real+imag*j, or convert a string or number to a plural
13.delattr
deletes the specified property delattr (obj, ' prop ') and Del obj.prop functions the same
14.dict Create a dictionary dictionary
15.dir
returns the property list of an object if the object is named __dir__ (), the method is called and must return the property list
16.divmod results and remainder of dividing two numbers
17.enumerate Get an enumeration object
18.eval executing an expression
19.exec Dynamic execution of Python code
20.filter Filter data to get an iterator
21.float Convert a string or number to floating point
22.format formatted Data
23.frozenset Get a new Frozenset object
24.getattr Get the value of the object property
25.globals Dictionary of the Global symbol table for the current module
26.hasattr
returns True if the object has a property, if name is a property of the object. Otherwise returns false
27.hash Get Object hash value
28.help back Help information
29.hex
converting integers to hexadecimal means using float.hex () to get the hexadecimal representation of floating-point numbers
30.id get the ID of the object (storing the memory number)
31.input output prompt, read user input
32.int Convert numbers or strings to integers
33.isinstance
determines whether an object is an instance of ClassInfo, and returns True if object is an instance of ClassInfo. Otherwise returns false
34.issunclass
determines whether a class is the parent of another class
returns True if the class is a subclass of another class. Otherwise returns false
35.iter get an iterator
36.len Returns the length of an object or the number of data in a collection
37.list Create a list
38.locals get the current symbol table dictionary
39.map change each data in the iterator to get a new iterator
40.max gets the largest of the largest or two or more parameters in the iterator
41.min Gets the smallest of the smallest or two or more parameters in the iterator
42.next Get the next data for the iterator
43.object
get an instance of object object without __dict__, cannot add property to object
44.oct
integer conversion to octal representation if x is not an int object, you must define a __index__ () function to return an integer
45.open
Opening a file and returning a stream can also read or write Stringio (text) or Bytesio (binary) as a file
46.ord to get the integer representation of the character
47.pow exponentiation equals pow (x, y)% Z Returns the result of Xy%z
48.print output data stream
49.property Get attributes (don't understand, forget him)
50.rang Creating a Range object
51.repr Gets the string representation of the object
52.reversed reverse sequence to get an iterator
53.round Floating-point numbers are rounded by scale
54.set Creating a Collection Object
55.setattr Changing the value of a property
56.slice getting a Shard object
57.sorted sort an iterative data to get a list
58.staticmethod
the static method of getting a function does not accept the first parameter that is hidden.
59.str
get the str version of the object STR is the built-in string class
60.sum calculates the total of the data that can be iterated
61.tuple Creating a tuple
62.type Returns the type of an object or creates a new type Object
63.vars getting attribute information
Python Learning note-day3-python built-in functions