Day 37
1. shutdown of thread pool and process pool
self.shutdown(wait=True)
Wait for all line/process tasks to complete and close the pool before executing the contents of the main process. Generally placed outside the for loop, it should be noted that after closing the line/process pool, you can no longer submit tasks. Re-execute the content ...
Posted by richardw on Fri, 20 May 2022 17:44:24 +0300
You don't know how to arrange your life. Many people will help you arrange what they need you to do.
PDF files are often used, especially in these two scenarios:
Download reference materials, such as various reports and documents
Share read-only data to facilitate dissemination and retain source files
Scenarios and modules
Therefore, there ar ...
Posted by eric1235711 on Fri, 20 May 2022 17:28:24 +0300
Find – collision pointer
Give an integer array nums and return the index values I and j of the two numbers in the array, so that nums[i] + nums[j] is equal to a given target value, and the two indexes cannot be equal.
For example: num = [2,7,11,15], target = 9
Return [0,1]
Idea:
Whether the start array is in order;
Is the index calculate ...
Posted by steven21 on Fri, 20 May 2022 16:49:37 +0300
Find actual combat
Case 1: sum of two numbers
Given an integer array nums and a target value target, please find the two integers with and as the target value in the array and return their array subscripts.
You can assume that each input will correspond to only one answer. However, the same element in the array cannot be used twice.
Example:
G ...
Posted by onewaylife on Fri, 20 May 2022 12:03:25 +0300
Wedge
In the last blog, we talked about the underlying implementation of Python functions, and also demonstrated how to customize a function. Although this doesn't make much sense in work, it can make us deeply understand the behavior of functions. In addition, we also introduced how to get the parameters of the function. This time, let's see h ...
Posted by EvanAgee on Fri, 20 May 2022 10:49:33 +0300
Building your own website is one of the signs of success as a coder,
Then there are other signs of success, holding Bai Fumei in your left hand, rolling a small barbecue in your right hand, and stepping on Santana under your feet
Um
Crawling data
Some children will say, uncle fish, aren't you designing a database table? How do you return the p ...
Posted by kingcobra96 on Fri, 20 May 2022 09:38:56 +0300
We should all have heard of the PO model when we do automation, so what is the PO model? What is the role of PO model in automation?
PO model
PO is actually: Page Object Model, also known as POM Model. PO is actually a design pattern, which has become popular in automated testing to enhance test maintenance and reduce code duplication. Page obj ...
Posted by Gazan on Fri, 20 May 2022 09:27:22 +0300
Seeing that the summer internship is coming to an end, recently record some recent achievements, and you can also refer to similar problems in the future.
At the beginning, we need to use osgeo's GDAL package, which can be downloaded from“ https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame "download the wheel for installation. I use ...
Posted by rob.weaver on Fri, 20 May 2022 06:09:24 +0300
2020 summer XX bank Internship - an automated script
Many people learn python and don't know where to start.
After learning python and mastering the basic grammar, many people don't know where to find cases.
Many people who have done cases do not know how to learn more advanced knowledge.
So for these three types of people, I will provide you ...
Posted by hhheng on Fri, 20 May 2022 05:57:35 +0300
python is a magical language. The magical place is that everything is an object, so if you don't have an object, you should be able to find true love here.
What is all objects? What is an object? What does it have to do with class?
In python, when we define classes, we often
class A(object):
pass
We all know that this object is a paren ...
Posted by Stickdragon on Fri, 20 May 2022 02:57:07 +0300