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:
#!/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)