In depth interpretation of Pytest official documents (26) custom Pytest assertion error information

catalogue Default error messageRewrite the error message of pytest assertionRewrite common assertion error messages text For example, write the following test cases def test_01(): assert 1==1 def test_02(): assert 1==2 def test_03(): assert "1"==1 The results are as follows: $ pytest ============================== test se ...

Added by HuggieBear on Mon, 14 Feb 2022 10:13:42 +0200

Java data structure and algorithm stack and queue

In life, we often encounter such situations: 1. When someone sends a book at school, if he wants to take out the top book, he can take it out directly. However, if he wants to take out the book in the middle, he must remove the book pressed on it to see the book. At this time, only the top can be taken out first, and the bottom can be taken out ...

Added by son.of.the.morning on Mon, 14 Feb 2022 10:03:03 +0200

Introduction to design patterns 2 Factory method model

Factory method pattern is also called factory pattern. In the factory method mode, the factory parent class is responsible for defining the public interface for creating product objects, while the factory subclass is responsible for generating specific product objects. The purpose of this is to delay the instantiation of product classes to the ...

Added by Hopps on Mon, 14 Feb 2022 09:52:41 +0200

Technology sharing | MySQL parallel DDL

Author: Li PengboAs a member of aikesheng DBA team, he will be transformed and is mainly responsible for MySQL fault handling and SQL audit optimization. Be dedicated to technology and responsible for customers.Source: original contribution*It is produced by aikesheng open source community. The original content cannot be used without authorizat ...

Added by RJP1 on Mon, 14 Feb 2022 09:22:01 +0200

Java program flow control

1. Process control statement Java provides some process control statements to control the execution process of the program Sequential structure - program default process Branch structure - if, switch Loop structure - for, white, do... while 1. Branch structure 1.if branch The code that executes a branch is determined according to the determ ...

Added by PHPHorizons on Mon, 14 Feb 2022 09:14:14 +0200

Awk entry to mastery series - awk quick start

brief introduction Awk is an excellent text processing tool and one of the most powerful data processing engines in Linux and Unix environments. The greatest function of this programming and data manipulation language (whose name comes from the initials of the surnames of its founders Alfred aihou, Peter Weinberg and Brian collinhan) depends o ...

Added by Grande on Mon, 14 Feb 2022 08:58:59 +0200

The hand of data structure is red black tree

catalogue 1. Introduction of red black tree  2. Basic properties of red black tree and definition of node 3. Rotation of red and black trees 4. Insertion of red black tree Insertion case I Insertion case II Insertion case III Insertion case IV Red black tree insertion summary: 5. Deletion of red black tree 6. Red black tree su ...

Added by B-truE on Mon, 14 Feb 2022 08:59:06 +0200

nacos cluster based on docker container (3 nodes)

nacos cluster based on docker container (3 nodes) 1, Preparation before installation 1.1. Server preparation Nacos cluster construction requires three or more Nacos nodes to form a cluster, so at least three server resources are required. This construction uses the three containers built by redis cluster and rocketmq cluster as three server ...

Added by wolfraider on Mon, 14 Feb 2022 08:33:40 +0200

Regular expression explanation of Shell script

I regular expression 1. Concept of regular expression Regular expression, also known as regular expression, is often abbreviated as regex, regexp or RE in code. It is a concept of computer science. Regular expressions are often used to retrieve and replace text that conforms to a pattern (rule). There is not only one regular expression, and ...

Added by paxman356 on Mon, 14 Feb 2022 08:29:46 +0200

Polymorphism, one of the three characteristics of object-oriented programming

polymorphic Simple understanding The different states of something at different times For example: Water: Solid, liquid, gaseous Solid water is water, liquid water is water, and gaseous water is water Fruits: Paramita, banana, durian Parami is a fruit, banana is a fruit, durian is a fruit The fruit is parami, so it's not allowed. anim ...

Added by Spitfire on Mon, 14 Feb 2022 08:02:18 +0200