Python Object-Class

Source: Internet
Author: User

Three classes that look at objects, or the features that objects have:

A. The Pycharm IDE is viewed through the type method:

Example:

temp = "Alex"

Print (Type (temp))

Returns the result str, in the edit window input str, click CTRL + LEFT mouse button, locate the Str class inside there are all methods

B. Dir () method view:

Example:

temp = "Alex"

Print (dir (Alex))

C. Help () method view:

Example:

temp = "Alex"

Print (Help (type temp))

Type description:

__xxx__ as an internal method

1. Number (int):

32-bit system: integer with 32 bits, value range: -2**31~2**31-1 ( -2147483648~2147483647)
64-bit system: integer with 64 bits, value range: -2**63~2**63-1 ( -9223372036854775808~9223372036854775807)

int Class (object) Detailed:

Python Object-Class

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.