Exception capture and regular expression usage in python
Exception capture
1. What is exception capture
"""
The program can continue to run if there is an exception in the process of program execution.
Note: you don't need to use exception capture all the time. You should use it when you know that there may be an exception in a certain place and you don' ...
Posted by rsmarsha on Mon, 29 Jun 2020 18:35:21 -0700
Understanding of parallel pipeline
Ideas sharing
Now there are two variables i,j. to calculate the result value of (i+j)*i/2, we can first find that each step of the calculation depends on the result of the previous step. For example, we have to add, then multiply, and then divide. It seems that we can't split it into parallel. This is ...
Posted by d00dle on Sun, 28 Jun 2020 21:46:56 -0700
python multi process explanation
python multitasking process
1, First demo
2, Queue
3, Process Pool
4, Case: file copying
5, Summary
1, First demo
Process: after a program runs, the resource used by code + is called process, which is the basic unit of non allocated resources of the operating system. Multitasking completed by t ...
Posted by 2paulm on Sun, 28 Jun 2020 20:35:19 -0700
Python from a line to 30 lines of code within the fun of project recommendations! [continuous update]
catalog
A line of code to realize the cardioid pattern
Two lines of code to make special dynamic QR code
Four lines of code generate exclusive word cloud:
Draw polygonal lines in five lines of code:
Ten lines of code to draw sunflower:
Twenty lines of code to realize the game of Jingzi chess
2 ...
Posted by zoran on Sat, 27 Jun 2020 19:15:05 -0700
Playing with Stream in Java 8
Playing with Stream in Java 8
By litesky
Link: http://www.jianshu.com/p/11c925cdba50
I believe you have heard about Java8 Stream, but you may not be able to use it or you are not familiar with it. This article will take you to use it from scratch, step by step, and lead you to the peak of Stream.
Operator
What are operators? Operator is a k ...
Posted by michibk on Sat, 27 Jun 2020 19:14:03 -0700
Design pattern principle
Design pattern principle
1. Overview
One object should have the least knowledge of other objects
The closer the relationship between class and class, the greater the coupling degree
Demeter principle is also known as the least known principle, that is, the less a class knows about its own dependent c ...
Posted by evo4ever on Fri, 26 Jun 2020 21:22:54 -0700
[Learning Notes] FHQ-Treap
Balanced Tree and FHQ-Treap
A balanced tree (i.e. a balanced binary search tree) is a series of metaphysical operations that keep the binary search tree (BST) in a more balanced state and prevent it from degenerating under certain data (when BST has monotonic insertion values, the tree is unbalanced and degenerates into \(\mathcal{O}(n)\) once ...
Posted by spidie on Fri, 26 Jun 2020 17:35:58 -0700
Kubernetes cluster: life cycle of (k8s) pod + init container + probe
1, Pod life cycle
• Pod can contain multiple containers in which applications run, and can also have one or more
Multiple Init containers started before the application container.
The Init container is very similar to ordinary containers except for the following two points:
• they always run t ...
Posted by JackSevelle on Thu, 25 Jun 2020 23:38:32 -0700
Chapter 5 - Spring of Architecture Volume 3-spiel
Article catalog
1, Evaluation
1. EvaluationContext
2. Configuration
2, Use
1. Based on XML
2. Based on annotation
3, Grammar
1. Text
2. Property, array, set
3. In line List
4. In line Maps
5. Array constructor
6. Method
7. Operator
8. Type
9. Constructor
10. Variables
11. Functions
12. Bean refe ...
Posted by intercampus on Wed, 24 Jun 2020 19:19:55 -0700
What are the mechanisms, differences and meanings of mutually exclusive access to Linux multithreaded global variables?
Write before:
Why write this article, I began to understand these three quantities very hard, gnawed for a long time "Modern Operating System", also read a lot of blogs, and finally a little experience.This article is based on that brick book and some blogs, with a personal summary and underst ...
Posted by SsirhC on Wed, 24 Jun 2020 18:49:52 -0700