Python built-in function

Source: Internet
Author: User

Python3 version of all built-in functions

For specific usage, please check out the Beginner tutorial built-in function chapter.

As well as for the specific classification introduced

ABS (x) Seek absolute value
1, the parameters can be integral type, can also be plural
2, if the parameter is negative, the return of the modulus of negative
Complex ([real[, Imag]]) Create a complex number
Divmod (A, B) Separate fetch and remainder
Note: integral, floating-point types can be
float ([x]) Converts a string or number to a float. If no parameter is returned 0.0
int ([x[, Base]]) Converts a character to an int type, and base represents the binary
Long ([x[, Base]]) Converts a character to a long type
Pow (x, y[, z]) Returns the Y power of X
Range ([start], stop[, step]) Produces a sequence that starts with 0 by default
Round (x[, N]) Rounded
Sum (iterable[, start]) Sum the Set
Oct (x) Convert a number to 8 binary
Hex (x) Converts an integer x to a 16-binary string
Chr (i) Returns the ASCII character corresponding to the integer i
Bin (x) Converts an integer x to a binary string
BOOL ([x]) Convert X to Boolean type



Python built-in function

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.