This article is participating in Python Theme Month. See the link to the event for more details

📢 preface

  • Two days ago, I had no time to chat with my friends. I heard that Python is the best language in the world ~🤡
  • My heart is very confused, the best language is not “C cool “🙈 (dog head save life)
  • So I want to learn the best language he said 😏
  • The original article is a big guy, but many pages are 404 🤓
  • So I arranged for two days, it will be complete 🤣
  • It may not be the best article, but it must be the most complete 😛
  • Almost everything about Python is covered, put it together in an article 😚
  • If there are any Python requirements in the future, come here to see 😗~
  • The scalp that arranges is pins and needles, this trifle really fee hair 😯

Chapter 1 Python Programming Basics

1. What is a programming language

2. Compiled and interpreted languages

3. Python is what

4. What are the features (advantages and disadvantages) of Python?

5. No programming background required to learn Python!

6. What can I do with Python

7. How to choose between Python 2. X and Python 3.

8. The differences between Python 3 and Python 2

9.Python 2to3: Automatically converts Python 2.x code to Python3.x code

10. Windows to install Python

11. Linux install Python

12. Install Python on the Mac

13. Python is not a solution to internal or external commands

14. Write your first Python program

15. Interactive Python interpreter

16. The Python annotations


Chapter 2 variable types and Operators

1.Python variables and their use

2.Python variable naming rules

3.Python Numeric types (integer, floating point, complex)

4. The Python string

5.Python bytes

6.Python escape characters

7.Python format strings

8.Python intercepts strings

9.Python string case conversion

10.Python removes whitespace from strings

11.Python String Operations (find, replace, Split, and concatenate)

12.Python assignment operator

13.Python arithmetic operators

14.Python bit operators

Python bool types and comparison operators

16.Python logical operators

17. The Python ternary operator

18.Python operator precedence


Chapter 3 Lists, Tuples, and Dictionaries

1.Python Sequences (lists and tuples)

2. The Python list () and the tuple ()

Add elements to the Python list

Remove elements from the Python list

Modify the elements in the Python list

6.Python list

7. A Python dictionary


Chapter 4 Python flow control

1.Python if else conditional statement

2.Python pass

3. The Python assert

4. Python while loop

5. The Python for loop

6. Else usage in Python loop constructs

7. Nested Python loops

8.Python list comprehensions

9. Python zip function

10. Python reversed function

11. The Python sorted function

12.Python break

13.Python continue

14. Digital to RMB pronunciation in Python project

15. Round-the-loop interview questions for a Python project


Chapter 5. Functions and Lambda expressions

1. The Python functions

2.Python functions return multiple values

3.Python function recursion

4.Python keyword parameters

5. Default Python parameters

6.Python variable arguments

7.Python function argument passing mechanism

8.Python variable scope

9.Python local functions

10. Advanced Use of Python functions

Python Lambda expressions


Chapter 6 Python Classes and Objects

1. Definition of Python classes

2. Creation and use of Python class objects

3.python self

4. The Python class calls instance methods

5.Python static and class methods

6.Python @ function decorator

7.Python class namespaces

8.Python class and instance variables

9. Python property function

10. Python encapsulation

11.Python inheritance

12.Python superclass method overrides

13.Python super

14.Python __slots__

15.Python type

16.Python metaclass

17. Python polymorphism

18. Python issubclass and isinstance

19. Python enumeration class


Chapter 7 Python exception handling

1.Python exception handling mechanism

2.Python try except else

3.Python finally

4.Python raise

5.Python traceback

6. Use Python’s exception handling mechanism correctly


Chapter viii. Class Special Members (Attributes and Methods)

1.Python __repr__

2.Python __del__

3.Python __dir__

4.Python __dict__

Python setattr, getattr, hasattr

6.Python __call__

7.Python sequence related operations

8. Python __iter__ and __reversed__

9. Python generator


Chapter 9 Python modules and packages

1.Python import Import module

2.Python custom module

3.Python loads modules

4. Python __all__ variables

5. Python packages

6.Python view module methods

7.Python __doc__

8.Python __file__


Chapter 10 common Python modules

1. Common Python modules (1)

2.Python common Modules (2)


Chapter 11 Tkinter

1. The Python GUI library

2.Python Thinter

3.Python Thinter


Chapter 12 File Manipulation in Python (I/O)

1.Python pathlib

2.Python os.path

3.Python fnmatch

4.Python open

5.Python read

6. Python readline and readlines

7.Python fileinput

8. The Python for loop reads the file

9.Python with

10.Python linecache

11. Writing files for Python (write and writelines)

12.Python os

13.Python tempfile


Chapter 13 Python database programming

1.Python Database API

2.Python SQLite

3. Summary of SQLite visual management tools

4. Install and use SQLite Expert

5. Download and install MySQL database

6.Python pip

Python3 uses PyMysql to connect to the mysql database

8. Operate the database


Chapter 14 Concurrent Programming in Python

1. What is thread (multi-threading)

2.Python creates threads

3. Life cycle of Python threads

4.Python Thread join

5.Python daemon threads

6.Python sleep

7.Python Thread safety (synchronous Lock)

8.Python thread deadlock

9.Python Condition implements thread communication

Python Queues enable thread communication

11.Python Events enable thread communication

12. The Python thread pool

13.Python threading Local

14.Python Timer Indicates the Timer

15.Python schedule

16.Python fork

17.Python Process

18.Python sets two ways to start a process

19.Python uses process pools to manage processes

20. The method of communication between Python processes


Chapter 15 Python network programming

1. What are computer networks, TCP/IP protocol and port numbers

2.Python network programming module

3.Python urllib.parse

4.Python urllib.request

5.Python http.cookiejar

6. The Python socket establishes a TCP connection

7.Python multi-threaded socket communication

8.Python socket shutdown

9.Python selectors

10. What is UDP

11. Socket sending and receiving data (based on UDP protocol)

12.UDP multicast and multicast

13.Python smtplib

14.Python poplib


Chapter 16 Python documentation and testing

1.Python pydoc

2.Python doctest

3.Python Unittest (PyUnit)

4.Python TestSuite

5. Python setUp and tearDown

6.Python Unittest skips test cases


Chapter 17 Python packaging and distribution

1. The Python zipapp packaging

2.Python PyInstaller


Chapter 18. Python Data Visualization

1. The Python Matplotlib installation

2.Python Matplotlib

3. Rstride and cstride parameters of the Python plot_Matplotlib 3D mapping function plot_surface

Install and use the Python Pygal module

5. Common Data graphs for Python Pygal

6.Python reads the CSV file

7.Python reads the JSON file

8.Python reads network data


Chapter 19 Python Scrapy web crawler

1. What are web crawlers

2. The Python Scrapy installed

Create Python Scrapy projects

4.Python Scrapy shell

Python Scrapy project development process

Save Python scrapy crawler data to MySQL database

1.Python Scrapy

Python Scrapy anticrawler

9.Python Scrapy solution

Python Scrapy integration with Selenium


💬 end

Well, if you come across the Python part, you can come here for reference oh

One key three collection folder to eat ash?

There is no, I also want to learn the so-called best language in the world!