3. pytest Chinese Document--Writing Assertions
Catalog
Writing assertions
Writing assertions using assert
Write assertions that trigger expected exceptions
Optimization of special data structure comparison
Add custom instructions for failed assertions
Details of assertion introspection
Overwrite Cache Files
To be able to assert se ...
Posted by if on Wed, 11 Sep 2019 02:04:23 -0700
A Case Study of android P Version System Stability
1. In the unlocked state, the interface sliding of the bright screen setting after the screen is extinguished is invalid.
Problem analysis:
(1) Can be reproduced in other application interfaces, non-application problems.
(2) Problem must be fo ...
Posted by katuki on Mon, 09 Sep 2019 21:00:17 -0700
Pyhton closures, decorators
closure
1. Function Reference
def test1():
print("--- in test1 func----")
# Call function
test1()
# Reference function
ret = test1
print(id(ret))
print(id(test1))
#Call functions by reference
ret()
Operation results:
--- in test1 func--- ...
Posted by harlowhair on Mon, 09 Sep 2019 06:48:00 -0700
[Chapter 9] Functions of python
Introduction of Functions
Functions are organized, reusable code segments that implement a single, or related function.
Functions can improve the modularity of applications and the reuse of code. You already know that Python provides many built-in functions, such as print(). But you can also create your own functions, which are called user-de ...
Posted by Mega on Mon, 09 Sep 2019 02:10:55 -0700
C_IN Depth Chapter 1 Evolution History of C_Development
Start with a simple data type
C# 1
public class Product
{
private string name;
public string Name {
get { return name; }
set { name = value; }
}
private decimal price;
...
Posted by Rolando_Garro on Wed, 04 Sep 2019 19:04:24 -0700
Exploration of SpringBoot Read Configuration File Source
1. SpringBook Read Configuration File Source Exploration
1.1. Overview
Springboot's source code is wrapped in the original Spring source code. Looking at the Spring source code, we all know that when we enter from debug, the original Spring source code is concentrated in refreshContext method. The main running steps of SpringBoot are basically ...
Posted by abigail on Fri, 30 Aug 2019 03:41:21 -0700
New features of lambda expression, thread library and atomic operation Library
C++11
10. lambda expression []
grammar
Capture list
Comparison of function object and lambda expression
11. Thread Library
Thread Startup
End of thread
Atomic Operating Library
10. lambda expression []
For example, in C++98, if you want ...
Posted by mgmoses on Thu, 29 Aug 2019 04:28:30 -0700
Python Development Necessary 30 Programming Skills
Direct exchange of two digits
Python provides an intuitive way to assign and exchange (variable values) in a line of code. As follows:
x, y = 10, 20
print(x, y)
x, y = y, x
print(x, y)
#1 (10, 20)
#2 (20, 10)
In the above code, a new tuple is fo ...
Posted by lmninfo on Tue, 27 Aug 2019 02:38:03 -0700
Python's second day of practice: The magic of dictionaries!
The next day insist!!!!
1. How to implement a dictionary (also called multidict) in which keys correspond to multiple values?
If a key maps multiple values, multiple values need to be placed in a container, such as a list or collection.
data = {
...
Posted by SammyGunnz on Mon, 26 Aug 2019 20:03:07 -0700
SpringBoot Integrates MyBatis-Plus 3.1 Detailed Tutorial
Authors: Sans_
juejin.im/post/5cfa6e465188254ee433bc69
I. Explanation
Mybatis-Plus is an enhanced plug-in of Mybatis framework. According to the official description, MP only makes enhancements and does not change. Introducing MP will not affect existing projects, such as silky smoothness. And it can quickly perform CRUD operations with ...
Posted by Hatch on Mon, 26 Aug 2019 19:45:23 -0700