learning python commonly used built-in functions (continuously updated ...)

learning python commonly used built-in functions

 

A, python commonly used built-in functions which

  to you()

 

Second, the role of each built-in function of the specific use and

  1, dir () Returns the current variable scope (global, local) time without parameters, a list of type and method definitions;

     When the return parameter list with parameters A properties, methods, and how the parameter A object has __dir __ (), this method is invoked, if that does not contain the method does not complain, but as much as possible to collect parameter object information a

     Example:  

       Without parameters, respectively in the files in the global and local call in the function call dir ()

         

 

         

       Arguments

         

Guess you like

Origin www.cnblogs.com/sikeblogs/p/12114950.html