Python built-in functions

Source: Internet
Author: User

Built-in functions
  • Object-oriented correlation
  • Iterator/Generator related
    • Range
      • Creates a new Range object based on the parameters passed in
    • Next
      • Returns the next element value in an iterator object
    • Iter
      • Creates a new, iterative object based on the parameters passed in
  • Other ()
    • String type code Execution (3)
      • eval
      • exec
        • Span class= "Content Mubu-node" > Execute String type code
      • complie
        • Compile a string into a byte code
    • input output (2)
      • input
        • read user input values
      • print
        • print output to standard output objects
    • Memory Related (2)
      • Hash
        • Gets the hash value of the object
      • Id
        • Returns the memory address of an object
    • File manipulation related (1)
      • Open
        • Opens the file with the specified pattern and encoding, returning the file read-write Object
    • Module-related (1)
      • __import__
        • Dynamic Import Module
    • Help (1)
      • Help
        • Returns help information for an object
    • Invoke correlation (1)
      • Callable
        • Detects whether an object can be called
    • View built-in properties (1)
      • Dir
        • Returns an object or a list of properties within the current scope
  • Reflection-related
  • underlying data type correlation
    • and Digital correlation (+)
      • data type (4)
        • bool
        • int
        • float
          • Creates a new floating-point number based on the parameters passed in
        • Complex
          • li>
      • Binary conversion (3)
        • Bin
          • converting integers to 2 binary strings
        • Oct
          • convert integers to 8 binary string
        • Hex
          • converting integers to 16 binary strings
      • Mathematical Operations (7)
        • Abs
          • To find the absolute value of a number
        • Divmod
          • Returns the quotient and remainder of two values
        • Round
          • Rounding a floating-point number to evaluate
        • Pow
          • Takes a power value of two values, or with other
        • Sum
          • Sum each element in an iterative object with an element type of numeric value
        • Min
          • Returns the smallest value in an element that iterates over an object or the minimum value of all parameters
        • Max
          • Returns the maximum value in an element of an iterator object or the maximum value of all parameters
    • and data structure related (the)
      • sequence (series)
        • list and Ganso (2)
          • list
          • tuple
            • Span class= "Content mubu-node" to create a new tuple from the parameters passed in
        • Related built-in functions (2)
          • Reversed
            • Invert a sequence to generate a new iterative object
          • Slice
            • Creates a new tile object based on the parameters passed in
        • string (9)
          • Str
            • Returns the string representation of an object (to the user)
          • Format
            • Formatting display values
          • bytes
            • Creates a new immutable array of bytes based on the parameters passed in
          • Bytearry
            • Creates a new byte array based on the parameters passed in
          • Memoryview
            • Creates a new memory view object based on the parameters passed in
          • Ord
            • Returns the integer corresponding to the Unicode character
          • Chr
            • Returns the Unicode character corresponding to an integer
          • Ascii
            • Returns a printable table string representation of an object
          • Repr
            • Returns the string representation of an object (to the interpreter)
      • data Sets (3)
          • dictionary (1) UL class= "Children" >
          • dict
            /li>
        • collection (2)
          • set
          • frozenset UL class= "Children" >
        • /ul>
      • related built-in functions (8)
        • Len
          • Returns the length of an object
        • Sorted
          • Sorts the objects that can be iterated, returning a new list
        • Enumerate
          • To create an enumeration object from an iterative object
        • All
          • Determines whether each element of an iteration object is a true value
        • Any
          • Determines whether an element that iterates over an object has an element that is a true value
        • Zip
          • Aggregates an element in the same position in each iterator passed in, returning a new tuple type iterator
        • Fiter
          • To filter the elements of an iterative object using the specified method
        • Map
          • Creates a new iterative object by using the specified method to function the elements of each iteration object that is passed in
  • Scope-dependent
    • Locals
      • function returns all local variables of the current position as a dictionary type
    • Globals
      • function returns all global variables in the type of dictionary

Python built-in functions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.