python_Interface Automated Test Framework

This article summarizes and introduces the development of interface test framework. The environment uses python3+selenium3+unittest+ddt+requests test framework and DDT data-driven, integrates test data functions such as Excel management test cases, and generates test reports using HTMLTestRunner. There are open source interface test tools such ...

Posted by newdles on Tue, 23 Jun 2020 16:54:17 -0700

PyQt5 detailed tutorial: pyqt programming based on PyQt5 QTdesigner (commonly used control, thread writing, and Matplotlib embedded in pyqt)

The biggest advantage of PyQt5 is that the interface can be made intuitively using qtdesigner, and then the code can be read directly, which saves the tedious steps of typesetting and so on, and the beauty of the interface is also beyond tk's reach. When using QTdesigner, it's better to layout the i ...

Posted by rayzun on Tue, 23 Jun 2020 03:59:09 -0700

To learn Python well, you must understand 35 key words in Python

Every programming language has some special words called keywords. The basic requirement to treat keywords is to avoid repetition when naming them. This article introduces the keywords in Python. Keywords are not built-in functions or built-in object types. Although it's better not to rename them, you can also use names that are the same as bui ...

Posted by jockey_jockey on Tue, 23 Jun 2020 01:05:56 -0700

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