It is enough to read one basic python grammar, and the most complete python grammar notes summary on the whole network

foreword

Python is a language that represents simple ideas, and its syntax is relatively simple and easy to learn. However, it would be a big mistake to underestimate the subtlety and depth of Python syntax.

If it can be integrated and used flexibly in actual combat, the code will be more refined and efficient, and at the same time, the code B will be greatly improved, making it look more sophisticated and read more elegantly.

Today, I will share with you a summary of the " python basic grammar summary notes word version" summarized by my brother in the process of self-study. The content is refined and comprehensive, and it is very useful for beginners. Look at it from time to time to strengthen memory and sort out knowledge difficulties. Because it is an editable file, you can also add the knowledge points you need to become your own complete grammar notes .

understand python

  1. Learn about Python
  2. Python identifiers
  3. Reserved characters in Python
  4. Python indentation and multi-line statement writing
  5. Unwrapped vs line-wrapped output in Python

Python variable types

  1. Variable assignment in Python
  2. Data Types in Python
  3. List
  4. Tuple (tuple)
  5. Dictionary (dictionary)

Python operators

  1. arithmetic operators
  2. comparison operator
  3. Python assignment operator
  4. Python bitwise operators
  5. Python member operator
  6. Python identity operator (judging the referenced object)
  7. Python operator precedence

Python statement

  1. Conditional statements
  2. loop statement

Python date and time

1. Get timestamp
2. Get time
3. Get formatted time
4. Get formatted time in more formats
5. Get calendar of a month
6. Functions and properties of Time and Calendar modules
7. Others can handle time module

Python function

1. Python function definition
2. Object creation
3. Changeable and unchangeable objects
4. Parameter passing of changeable and unchangeable objects
5. Use of parameters when calling a function
6. Anonymous function (created with lambda
7. Variable role area

Python module

1. The difference between the three methods of importing modules
2. Namespace and scope
3. Find out all the module names, function names, and variable names in the module (dir() function)
4. View global variables and local variable namespaces
5 .reload() function

Python I/O functions (not just file read and write)

1. Read keyboard input
2. Open and close read and write files
3. File object method
4. File OS (a module for processing files and directories in Python)

Exception Handling in Python

1. Exception types
2. Exception handling
3. Set exceptions by yourself (for bug modification, error checking)
4. Create your own exception types for reuse of common exceptions

Python built-in functions

Python object-oriented

1. Introduction to object-oriented technology
2. Creating classes
3. Creating instance objects
4. Manipulating object attributes
5. Python built-in class attributes
6. Inheritance of classes
7. Operator overloading
8. Private attributes and methods of classes
9. Single underscore, double Description of underscore, double underscore at head and tail

Due to the limited space, friends who need the full version of "Python Basic Grammar Summary Notes" can scan the QR code below on WeChat to get it for free!

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326734544&siteId=291194637
Recommended