python data type details

python data type classification 1. Numeric types: integer (int), float, Boolean (bool values: True, False) 2). Container type : String (str), list, tuple, dictionary, set 3). Custom types: Person, Animal, Dog, Cat, Student... NoneType: None String type (str) Features: One of the container types that satisfies an ordered (indexed), repeatable, ...

Posted by Qense on Wed, 12 Feb 2020 18:23:36 +0100

Talk about the reconnectAttempts of artemis

order This paper mainly studies the reconnectAttempts of artemis reconnectAttempts activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ServerLocatorImpl.java public final class ServerLocatorImpl implements ServerLocatorInternal, DiscoveryListener { //...... public ClientSessionFactory c ...

Posted by moehome on Wed, 12 Feb 2020 16:15:11 +0100

Building a simple picture server with Tomcat

Prerequisite Tomcat 7.0.90 Method 1: modify the configuration file Add a sub label in < host > in the TOMCAT_HOME/conf/server.xml configuration file: <Context docBase="C:\exambase\" path="/img"/> Method 2: add Servlet Create a new application, add the following Servlet, deploy the application and start Tomcat. package com.lun.se ...

Posted by smokenwhispers on Tue, 11 Feb 2020 18:36:00 +0100

Python 3 functional programming: anonymous function, higher-order function, decorator

1, Anonymous function 1. Definition: function name does not need to be defined when defining function 2. Specific examples: #Ordinary function def add(x,y): return x + y #Anonymous function lambda x,y: x + y Call anonymous function: f = lambda x,y: x + y #Call after assignment print(f(1,2) In lambda (i.e. later), only simple ex ...

Posted by NickG21 on Tue, 11 Feb 2020 13:42:57 +0100

BigDecimal precise calculation tool class

Preface In the actual development, when encountering commercial calculation such as currency and statistics, the java.math.BigDecimal class is generally used for accurate calculation. And this kind of operation is usually predictable, that is, universal. So, write a tool class to facilitate future work. This is the warehouse address: Warehouse ...

Posted by vladj on Mon, 10 Feb 2020 14:06:47 +0100

Spring learning precipitation

Spring learning precipitation Basic concepts Reactive && Servlet Reactive Servlet Spring annotation summary Assembly bean Configuration class Config Bean Test class Source learning Dependency injection and inversion of control (spring container) Application context BeanFactory Bean ...

Posted by satal keto on Sun, 09 Feb 2020 21:14:49 +0100

Talk about QuorumVote of artemis

order This paper mainly studies QuorumVote of artemis QuorumVote activemq-artemis-2.11.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/qourum/QuorumVote.java public abstract class QuorumVote<V extends Vote, T> { private SimpleString name; public QuorumVote(SimpleString name) { this.name = name; ...

Posted by amylisa on Sun, 09 Feb 2020 15:41:43 +0100

Java BM string matching algorithm

BM matching algorithm follows one condition and two rules: 1. Conditions: The pattern string matches the main string from the end of the string, that is, from the back to the front Two, rules: 1. Bad character rule: in the process of pattern string and main string matching in turn, if there are unmatched characters in the main string, this ...

Posted by pfdesigns on Sat, 08 Feb 2020 18:13:24 +0100

ES6 Promise Usage Summary

Catalog: 1, Promise overview 2, Benefits of using Promise 3, Promise basic usage 4, Send Ajax request based on Promise 5, Promise basic API Example method .then() .catch() .finally() Static method .all() .race() 1, Promise overview In short, Promise is a solution for asynchronous programmi ...

Posted by Kev0121 on Sat, 08 Feb 2020 13:49:39 +0100

java learning notes operators

java learning notes (4) - operators Article directory java learning notes (4) - operators operator Assignment, arithmetic and unary operators Simple assignment operator Arithmetic operator Unary operator Equality, relation and conditional operators Equivalence and relational operators Condition ...

Posted by danbot26 on Sat, 08 Feb 2020 12:32:47 +0100