Learning notes for the fourth week of java
2022.1.25
Map
About how to deal with duplicate data input and error information input while(i<3){
String id = input.next();
if(GoodMap.containsKey(id)){
continue;
}
String name = input.next();
double value =0;
try{
value=input.nextD ...
Added by NDF on Wed, 02 Feb 2022 17:25:21 +0200
Deep into the RUST Standard Library Kernel
intrinsic Library of RUST
Intrinsics is built in by the compiler and provided to other modules. For inherent functions, there is no need to ask how to implement them. Just understand their functions and use them when needed . The internal library of the memory part has been introduced in the memory library chapter above. This section gives ...
Added by phppucci on Wed, 02 Feb 2022 12:29:01 +0200
Considerations for python threads
1. Introduction to thread precautions
Execution between threads is out of order The main thread will wait for the execution of all child threads to end Sharing global variables between threads There was an error sharing global variable data between threads
2. The execution between threads is out of order
import threading
import time
def ta ...
Added by eagleweb on Wed, 02 Feb 2022 11:35:05 +0200
Java Collection - seven traversal methods of HashMap
HashMap traversal can be divided into the following four categories from a general perspective:
Iterator traversal;For Each traversal mode;Lambda expression traversal (JDK 1.8 +);Streams API traversal (JDK 1.8 +).
However, there are different implementation methods under each type, so the specific traversal methods can be divided into the fol ...
Added by Kunax on Wed, 02 Feb 2022 11:25:37 +0200
Java learning (middle)
JAVA learning (middle)
2019 Silicon Valley Java introduction video tutorial, BiliBili link: https://www.bilibili.com/video/BV1Kb411W75N?p=5
4, Object oriented (I)
The object-oriented feature is the core and play of Java learning.
4-1 process oriented and object-oriented
l Object Oriented Programming
l process oriented programming
Bot ...
Added by RobMs on Wed, 02 Feb 2022 10:06:34 +0200
Java Basics - Common Java classes
1, String related classes
1. String class and common methods
String: a string, represented by a pair of "".
① String is declared as final and cannot be inherited.
② String implements the Serializable interface: it means that the string supports serialization.
String implements the Comparable interface: it means that string can co ...
Added by Sinister747 on Wed, 02 Feb 2022 08:39:53 +0200
Notes on the fifth edition of c++primer: function pointer
p221
The type of a function is determined by its return type and formal parameter type, regardless of the function name. Take chestnuts for example:
bool lengthCompare(const string &,const string &)
The type of this function is bool (const string &, const string &). To declare a pointer that can point to the function, sim ...
Added by lizzyd on Wed, 02 Feb 2022 07:59:05 +0200
04 data types and operators | introduction to Python
data type
Number
Integer
An integer is a type that represents an integer. The type name is int.
Variables are abstract concepts that store data. Assign values to variables with the equal sign =, Python allows multiple variables to be assigned at the same time.
The name of a variable is called the variable name. The variable name cannot be ...
Added by kristen on Tue, 01 Feb 2022 15:38:11 +0200
SpringBoot day 16 - Web exception handling
SpringBoot - Web exception handling
Understand the exception handling mechanism of SpringBoot for Web development.
1. Exception handling mechanism
1.1 default exception handling
By default, SpringBoot provides / error mapping to handle all exceptions, And register as a global error handling page in the Servlet container.
For browser client ...
Added by ochi on Tue, 01 Feb 2022 14:46:03 +0200
Three particularly practical Python modules are recommended, which are worth collecting
Hello, everyone. Today I will introduce three Python modules that are particularly easy to use. Few people know about them, but they are particularly easy to use.
Psutil Pendulum Pyfiglet
Psutil
The Psutil module in Python is a cross platform library. It can easily obtain the process and system utilization of the system, including CPU, m ...
Added by sb on Tue, 01 Feb 2022 13:45:00 +0200