Python supplements (in continuous update)

Source: Internet
Author: User

Although I used Python to do several small sites behind the scenes, but did not touch all aspects of Python. This time to participate in the 51cto network of old boy Python operation and maintenance courses, to check the gaps.

This blog post will be continuously updated to include the Python knowledge points I have omitted.

April 5 ~ 11th:

  • Under Linux, use the
#!/usr/bin/python3
Or
#!/usr/bin/env Python3

To specify the Python version to be used when the Python program is run

  • Use the type ( variable name ) to query the variable type. There is a type (a) = = str in this usage.
  • Use the ID ( variable name ) to query the address that the variable is assigned to in the Python interpreter.
  • Use DIR ( variable name ) to query the methods supported by the variable.
  • Used as the division operator to get the integer part of the result.

Python supplements (in continuous update)

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.