Remember the scenario of using delay queue in one work
1 scenario
The company is engaged in the traffic management of the Internet of things related businesses recently connected with the mobile remote traffic card. The specific business involves card downtime and card recovery. After the user recharge, the background calls the remote card recovery interface for recovery, but the actual test is don ...
Posted by Hikari on Thu, 07 May 2020 10:23:25 +0200
Python 3 quick start tutorial errors and exceptions
There are at least two types of errors in Python: syntax errors and exceptions.
syntax error
Syntax errors are also called parsing errors:
>>> while True print('Hello world')
File "<stdin>", line 1
while True print('Hello world')
^
SyntaxError: invalid syntax
The parser indicates the error line ...
Posted by bigger on Thu, 07 May 2020 10:12:10 +0200
[SpringBoot Basic Series] Implement a custom configuration loader (application)
[SpringBoot Basic Series] Implement a custom configuration loader (application)
The @Value annotation is provided in Spring to bind configurations so that they can be read from the configuration file and assigned to member variables; sometimes, our configurations may not be in the configuration file, if they existDb/redis/other files/third-p ...
Posted by McManCSU on Thu, 07 May 2020 04:00:28 +0200
Charles grabs the package and turns it into interface automation test case
We can get the json file to be parsed and convert it to json for saving by using Charles to grab the package and transfer the interface automation test case. So let's read it.
First of all, let's look at the last document,
{
"config": {
"name": "testcase description",
"variables": {}
},
"teststeps": [
...
Posted by saami123 on Wed, 06 May 2020 16:46:24 +0200
Simple application of Dubbo+ZooKeeper
1. What we want to achieve
Provider: the service provider that exposes the service. I create a Module named news provider to implement it. Consumer: the service consumer that calls the remote service. I create a Module named news consumer to implement it. Registry: the Registration Center for service registration and discovery, which is imp ...
Posted by xenoalien on Wed, 06 May 2020 08:31:48 +0200
(Python Basic Tutorial VIII) list operation in Python
Python Basic Tutorial
Configuring the Python environment in SublimeEditor
Add comments to Python code
Use of variables in Python
Data types in Python
Keyword in Python
Python string operations
list operation in Python
Tuple operation in Python
Pythonmax() and min() - Find the maximum and minimum values in a list or array
Python finds the large ...
Posted by smallflower on Wed, 06 May 2020 03:17:12 +0200
Design pattern principle - Dependency Inversion Principle
Interface oriented programming, which depends on abstraction rather than on concrete classes, interacts through interfaces when writing concrete classes
1. Basic introduction
(1) High level modules should not rely on low level modules, both of which should rely on abstraction
(2) Abstraction should not depend on details. D ...
Posted by JeanieTallis on Mon, 04 May 2020 22:12:20 +0200
LeetCode -- longest substring without duplicate characters
LeetCode -- longest substring without duplicate characters
Blog Description
The information in this article comes from the Internet and personal summary, which is intended to summarize personal learning and experience. If there is any infringement, please contact me to delete it. Thank you!
Explain
leetcode Question, Interview 48
The longest ...
Posted by calevans on Sun, 03 May 2020 05:39:23 +0200
Fake daemons in Python ThreadPoolExecutor
phenomenon
Observe the submit code of ThreadPoolExecutor:
def _adjust_thread_count(self):
# When the executor gets lost, the weakref callback will wake up
# the worker threads.
def weakref_cb(_, q=self._work_queue):
q.put(None)
# TODO(bquinlan): Should avoid creating new threads if there are more
...
Posted by xlordt on Thu, 30 Apr 2020 07:10:07 +0200
Case analysis: python operation database project
According to an example of a project, this paper records and shares the process and relevant settings of python's displaying the content of database to the program interface, and explores the usage of python's operating database.
Main contents to be shared:
1. Displays the database contents.
2. Modify database content.
3. The table control spec ...
Posted by andrewgk on Wed, 29 Apr 2020 08:50:53 +0200