[Shangsi Valley _java foundation] factory design mode
This article comes from
Introduction to Java video tutorial Courseware.
Factory mode It realizes the separation of creator and caller, that is, the specific process of creating objects is shielded and isolated, so as to improve flexibility. In fact, both design patterns and object-oriented design principles are to make the development proj ...
Added by laeelin on Mon, 03 Jan 2022 11:07:07 +0200
Java advanced: Collection framework 2, java development starts from scratch
1, List interface
1. General
Inherits the Collection interface, which is a Collection of elements
For example, the order of storing elements is 11, 22, 33. Then, the storage of elements in the set is completed in the order of 11, 22 and 33)
It is a set with index , through which the elements in the set can be operated accurately (the ...
Added by Aleirita on Mon, 03 Jan 2022 10:54:29 +0200
[Yugong series] December 2021 Java Teaching Course 32 - abstract classes
1, Abstract class
1. Overview of abstract classes (understanding)
When we are doing subclass common function extraction, some methods are not embodied in the parent class. At this time, we need to abstract classes!
In Java, a method without a method body should be defined as an abstract method, and if there is an abstract method in a c ...
Added by milsaw on Mon, 03 Jan 2022 09:54:24 +0200
Go function, array, pointer, structure, slice
Go function, array, pointer, structure, slice
10, Functions
1. Format:
func Function name(parameter list) return type{
}
When there are multiple return values:
func Function name(parameter list) (Return value 1 type,Return value 2 type,Return value 3 type){
}
2. Function parameters
(1) Value passing; Go language uses value passing by def ...
Added by hexguy on Mon, 03 Jan 2022 09:04:25 +0200
#Lift your hands to learn Python# list derivation and dictionary derivation
List derivation and dictionary derivationDerivation is a very Python knowledge in Python. This blog will give you detailed answers to the technical knowledge related to list derivation and dictionary derivation.List derivationList derivation can quickly generate a specific list by using data types such as list, tuple, dictionary and collection. ...
Added by errtu on Mon, 03 Jan 2022 08:21:42 +0200
The transformation of recursive algorithm with classic cases (monkey eating peach problem) and irregular cases, including the core idea
1, Overview of method recursion
1. What is method recursion
The form in which a method calls itself directly or indirectly is called method recursion.
As an algorithm, recursion is widely used in programming languages.
2. Recursive form
Direct recursion: the method calls itself.
Indirect recursion: the method calls other methods, and othe ...
Added by dschreck on Mon, 03 Jan 2022 08:15:32 +0200
Synchronized synchronization mechanism in Java multithreaded environment
1. Preface
Have you ever wondered if the ++ operation in Java is thread-safe, that is, if multiple threads execute the ++ operation together in a multi-threaded situation, the result will not be what we expected. You can write a demo to verify it.
public static int count = 0;
public static void main(String[] args) {
for (int j = 0; j < ...
Added by gandelf1000 on Mon, 03 Jan 2022 07:51:58 +0200
As long as you master Python's built-in functions, your programming speed will increase rapidly
Overview of built-in functions
There are 80 built-in functions in Python 2.7. Skillfully remembering and using these built-in functions will greatly improve the speed of writing Python code and the elegance of the code.
The following code example uses ipython, a much better interpreter than the official interpreter, to learn and use values. ...
Added by Arnerd on Mon, 03 Jan 2022 05:51:24 +0200
python resample converting daily K data
Get stock data through Python API
Poly width
Code example Get the stock information of Ping An Bank
from jqdatasdk import *
auth('','')
#Obtain the data of Ping An Bank in the first four time units based on "2015-01-30 14:00:00" in a 1-minute cycle
df = get_price('000001.XSHE', end_date='2015-01-30 14:00:00',count=4, frequenc ...
Added by bsamson on Mon, 03 Jan 2022 05:27:00 +0200
java High Score Interview Guide: Introduction to springboot
Be careful! If you choose a non-default engine, you need to set up a template engine in AutoGenerator.
AutoGenerator generator = new AutoGenerator();
// set freemarker engine
generator.setTemplateEngine(new FreemarkerTemplateEngine());
// set beetl engine
generator.setTemplateEngine(new BeetlTemplateEngine());
// set custom engine ...
Added by athyzafiris on Mon, 03 Jan 2022 05:13:48 +0200