Python advanced - coroutine
catalogue
Synergetic process
Collaborative process is a multi-party collaborative way of work. The current executor actively gives up the control flow at a certain time and remembers its current state, so that it can resume execution from the last given position when the control flow returns.
In short, the core idea of collaborative proc ...
Posted by ady01 on Thu, 20 Jan 2022 09:11:01 +0100
Image Classification (AlexNet): Code Notes
AlexNet Preface Knowledge
The Macro Framework of Deep Learning: training and inference and Their Application Scenarios json.loads() method of loading json data: used to convert str-type data to dict.
Training
For example, now you want to train a model that can distinguish between an apple and an orange. You need to search for some pic ...
Posted by JNorman on Thu, 20 Jan 2022 08:28:31 +0100
Implementation of web automatic clock in with Python + selenium
Implementation of web automatic clock in with Python + selenium
Summary:
Probably in the context of XX, you need to log in to the website every day to fill in the body temperature and location information, analyze the logic of sending the request during login, and realize automatic clock out through Python selenium.
thinking
Operate the ...
Posted by XaeroDegreaz on Thu, 20 Jan 2022 08:20:03 +0100
No, Xiaobian made a skiing adventure game in Python
Related documents
Source code sharing, problem solving!! Pay attention to Xiaobian and receive private letter Xiaobian! Of course, don't forget a triple~~
Yes, we can pay attention to the official account of Xiaobian yo ~ ~ There are many resources to get!!
You can also go to station b to watch some of my teaching videos!! More Python video ...
Posted by DrDankWD on Thu, 20 Jan 2022 05:28:32 +0100
Python build Web server: 3.0
Python build Web server: 3.0
1, Introduction
In the previous chapter, we have successfully enabled the Web server to run continuously and support multi-user connections at the same time. But so far, our Web server can only return "Hello World" for all routes. As a qualified Web server, we need to be able to support the function of r ...
Posted by darktimesrpg on Thu, 20 Jan 2022 02:55:57 +0100
python object-oriented -- encapsulation, inheritance, polymorphism
Introduction to basic knowledge
1. Packaging
Encapsulation refers to putting the implementation codes of data and specific operations inside an object so that the implementation details of these codes are not discovered by the outside world. The outside world can only use the object through the interface, but cannot modify the internal implem ...
Posted by mattwade on Thu, 20 Jan 2022 02:11:33 +0100
The basis of data structure from the perspective of python
The basis of data structure from the perspective of python
array
concept
An array is an ordered set of finite variables of the same type. Sequential storage in memory can realize logical sequential table.
python mainly uses lists and tuples, which are essentially the encapsulation of arrays.
basic operation
#Initialization list
my_list = ...
Posted by nonexistentera on Thu, 20 Jan 2022 01:18:32 +0100
NOJ-Python programming assignment of Northwest University of technology 71-80
Northwest University of technology NOJ-Python programming problem set: Noj Python Programming: Season 1: season 1-easy (1-10) Noj Python Programming: Season 2: Season 2 snippet (11-20) Noj Python Programming: Season 3: season 3-loop (21-30) NOJ-Python programming: Season 4: enumeration algorithm (31-40) NOJ-Python programming: Season 5: modular ...
Posted by jimson on Thu, 20 Jan 2022 00:53:22 +0100
Python basics 7 -- singleton mode
15 singleton mode
15.1 init and new methods
Perform steps
Instantiate an object, execute the new method first, and return the object in the new methodThen call the init method
15.1.1 __init__ method
__ init__ Is the construction method
In fact, the first method called is the new method, but in most cases, the new method is not used
clas ...
Posted by Copernicus on Thu, 20 Jan 2022 00:30:05 +0100
GIL interpreter lock & process pool and thread pool
Today's content
GIL global interpreter lock (important theory)
Verify the existence and function of GIL
Verify whether python multithreading is useful
Deadlock phenomenon
Process pool and thread pool (frequently used)
IO model
Detailed reference:
https://www.bilibili.com/video/BV1QE41147hU?p=500
Detailed content
1, GIL global interpreter ...
Posted by Illusionist on Wed, 19 Jan 2022 22:30:26 +0100