Python

pip watercress source proxy

For some reason, the access to the official pypi is unstable, very slow and even some cannot be accessed from time to time

Python3 Peewee use

When using, first define the Model according to the requirements, and then create a table through create_tables(). If the database table has been created, you can directly create the Model through the python -m pwiz script tool

Python uses websocket-client

WebSocket is a two-way communication protocol based on the TCP protocol that allows real-time data transfer between the browser and the server. In Python, a WebSocket client can be easily implemented using the websocket-client library

Python direct assignment, shallow copy and deep copy analysis

Direct assignment: In fact, it is a reference to the object. Shallow copy (copy): copies the parent object and does not copy the internal child objects of the object. Deep copy (deepcopy): The deepcopy method of the copy module completely copies the parent object and its child objects.