Python core

Python orchestration Basics Co programming is a way to realize concurrent programming example Simple reptiles import time def crawl_page(url): print('crawling {}'.format(url)) sleep_time = int(url.split('_')[-1]) time.sleep(sleep_time) print('OK {}'.format(url)) def main(urls): ...

Posted by jerastraub on Mon, 22 Jun 2020 22:14:24 -0700

Python's setting and decoding of the verification code for rotating pictures

Python's setting and decoding of the verification code for rotating pictures In this paper, we mainly use python + selenium to crack the verification code of rotation breakthrough, in which numpy and OpenCV (CV2) are used for image splicing, conversion, mask, recognition, etc Rotate the picture to t ...

Posted by psychosquirrel on Mon, 22 Jun 2020 21:11:21 -0700

Notes on generators and iterators

Generators and iterators generator Definition: in Python, the mechanism of calculating while looping is called generator. 1. Generator function Generator functions -- essentially functions written by ourselves As long as the function containing the yield keyword is a generator function, yield cannot be shared with return and needs to be written ...

Posted by adrianl on Mon, 22 Jun 2020 00:54:46 -0700

The analysis of the screen in the hidden corner, the production of the word cloud, to see how the audience's evaluation of the play

preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Recently, there is a very popular suspense and reasoning play: the secret corner. Douban scored ...

Posted by gottes_tod on Sun, 21 Jun 2020 23:53:42 -0700

What does Python mean by closures?

Closure is a common concept in programming language, but to be honest, the term is a bit obscure. After checking the information on the Internet for half a day, I still don't know what to do. What I wonder is: what kind of problem is this thing used to solve? Or what is his role? First of all, function After consulting many materials, the summa ...

Posted by saradrungta on Sun, 21 Jun 2020 21:57:13 -0700

Tensorflow2 Custom Dataset Pictures Complete Picture Classification Task

For image tasks of custom datasets, the general process is generally divided into the following steps: Load data Train-Val-Test Build model Transfer Learning Most of the energy will be spent on data preparation and preprocessing. This paper uses a more general data processing method, and builds a simple model, a deeper resnet ...

Posted by angershallreign on Sun, 21 Jun 2020 17:17:49 -0700

Father's Day: hard core programmers show love, "Dad" gas confession!

In a blink of an eye, it's the third week of June, and the year 2020 is about to pass by half. Sunday, June 21, 2020 (the first day of may in the year of gengzi (the year of rat), that is to say, tomorrow, which is also Father's Day. Father's Day, as the name suggests, is a day to thank your father. It began in the early 20th century, origina ...

Posted by bseven on Sun, 21 Jun 2020 03:03:44 -0700

[programming basics] Python configuration file reading library ConfigParser summary

The Python ConfigParser tutorial shows you how to use ConfigParser to use configuration files in Python. Article catalog 1 Introduction 1.1 Python ConfigParser reading files 1.2 sections in Python configparser 1.3 Python ConfigParser reading data from strings 1.4 Python ConfigParser reading data fro ...

Posted by turboprop on Sun, 21 Jun 2020 02:23:45 -0700

Implement the training and testing of RetinaNet from zero

Article catalog Training for RetinaNet Testing RetinaNet on COCO datasets Testing RetinaNet on VOC datasets Complete training and test code Assessment of model recurrence All codes have been uploaded to my github repository: https://github.com/zgcr/pytorch-ImageNet-CIFAR-COCO-VOC-training If you t ...

Posted by acheoacheo on Sat, 20 Jun 2020 23:50:10 -0700

Python self study notes: using character level features to enhance the LSTM part of speech annotator

Python self study notes (1) Python self study notes (1): using character level features to enhance the LSTM part of speech annotator 1. LSTM in Python 2. Part of speech tagging with LSTM 2.1 data preparation 2.2 create model 2.3 model training 3. Use character level features to enhance LSTM part ...

Posted by ym_chaitu on Sat, 20 Jun 2020 20:20:56 -0700