Python Basic data type

Source: Internet
Author: User

In the case of idle use:

Open Idle and click "File", "New file" in the menu bar.

In the new file, save it. Right-click the file, open with, select Python idle open.

After the code is finished, press F5 to run.

In which to output a, also need to put in print (), or press F5, do not see the results.

The numeric type in Python is immutable (strongly typed) and cannot be: 1 + "1"

There is no type (dynamic type) in Python, and there is no need to write a keyword such as int, string, float, etc. before the variable.

Python is fully object-oriented:

Object-oriented Example: Call someone to buy a bottle of water, he bought the water just fine.

Process-oriented example: Call someone to buy a bottle of water, give him water, tell him to buy what brand, volume, Downstairs, go left, cross the road, to the kiosk, ask the boss to buy water, and then come back. The whole process.

View built-in functions: Dir (__builtins__)

Not finished, to be continued ...

Python Basic data type

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.