Callable (object) |
Checks whether object objects can be called 1, the class is can be called 2. Instances cannot be invoked unless the __call__ method is declared in the class |
Classmethod () |
1, annotations, to illustrate this way is a class method 2. Class methods can be called by the class or by instance 3. The class method is similar to the static method in Java 4. The self parameter is not required in a class method |
Compile (source, filename, mode[, flags[, Dont_inherit]]) |
Compiles source into code or AST object. The code object can be evaluated by EXEC statement execution or eval (). 1. Parameter source: string or AST (Abstract Syntax Trees) object. 2, Parameter filename: code file name, if not read from the file code is passed some recognizable values. 3. Parameter model: Specifies the kind of compiled code. can be specified as ' exec ', ' eval ', ' single '. 4. Parameter flag and Dont_inherit: These two parameters are not introduced temporarily |
Dir ([Object]) |
1, without parameters, returns the list of variables, methods, and definitions in the current scope; 2, with parameters, returns the properties of the parameter, the method list. 3. If the parameter contains method __dir__ (), the method will be called. When the argument is an instance. 4. If the parameter does not contain __dir__ (), the method will collect the parameter information to the maximum |
Delattr (object, name) |
Delete an object named Name property |
eval (expression [, globals [, locals]]) |
Evaluates the value of an expression |
ExecFile (filename [, globals [, locals]]) |
The usage is similar to exec (), the difference is that the execfile parameter filename is the file name, and the exec parameter is a string. |
Filter (function, iterable) |
Constructs a sequence that is equivalent to [item for item ' in Iterable if function (item)] 1, Parameter function: Return a value of TRUE or false functions, can be none 2. Parameter iterable: A sequence or an iterative object |
GetAttr (object, name [, Defalut]) |
Gets the properties of a class |
Globals () |
Returns a dictionary that describes the current global symbol table |
Hasattr (object, name) |
Determines whether the object contains an attribute named name |
Hash (object) |
Returns the hash value of object if object is a hash table type |
ID (object) |
Returns the unique identity of an object |
Isinstance (object, ClassInfo) |
Determine if object is an instance of class |
Issubclass (class, ClassInfo) |
Determine if it is a subclass |
Len (s) |
Return collection length |
Locals () |
Returns the current list of variables |
Map (function, iterable, ...) |
Iterate through each element to perform a function operation |
Memoryview (obj) |
Returns an object of a memory image type |
Next (iterator[, default]) |
Similar to Iterator.next () |
Object () |
Base class |
Property ([Fget[, fset[, fdel[, Doc]]) |
The wrapper class for property access, which can be set to access the setter and getter via C.x=value, etc. |
Reduce (function, iterable[, initializer]) |
The merge operation, which starts with the first two parameters, and then the first two results are processed with the third merge, and so on |
Reload (module) |
Reload Module |
SetAttr (object, name, value) |
Setting property values |
Repr (object) |
Changing an object to a printable format |
Slice () |
|
Staticmethod |
Declares a static method, which is an annotation |
Super (type[, Object-or-type]) |
Referencing a parent class |
Type (object) |
Returns the type of the object |
VARs ([object]) |
Returns the variable of the object, if no argument is similar to the Dict () method |
ByteArray ([Source [, encoding [, errors]]) |
Returns a byte array 1, if source is an integer, returns an initialized array of length source; 2. If source is a string, the string is converted to a sequence of bytes according to the specified encoding; 3. If source is an iterative type, the element must be an integer in [0, 255]; 4. If source is an object that is consistent with the buffer interface, this object can also be used to initialize the ByteArray. |
Zip ([iterable, ...]) |
is not understand, just see the matrix of the changing aspects |