Asterisk (*) for beginners of Python 90% of people don't understand

  Compared with other programming languages, Python has more diversified operation types. In particular, the asterisk (*), which is a widely used operator in Python, is not only used in the multiplication of two numbers. In this article, we will discuss the various uses of asterisks. The application scenarios of four kinds of asterisks are su ...

Added by hours12 on Mon, 13 Apr 2020 13:06:12 +0300

Spring Boot integrates Swagger2 to build RESTful API documents

Introducing dependency Add io.springfox:springfox-swagger2 and io.springfox:springfox-swagger-ui dependencies to pom.xml <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.8.0</version> </dependency> <dependency> <groupId&gt ...

Added by kernelgpf on Sun, 12 Apr 2020 19:28:39 +0300

Laravel Contracts Conceptual Analysis and Code Samples

Introduction to Contracts Laravel's Contract Contracts are a set of interfaces and a specification for code implementation.The Laravel Framework Core Service provides many Contracts, such as IlluminateContracts\Logging\LoggingLogging, which defines the method required to log. The framework itself has corresponding implementations for Contracts, ...

Added by andychurchill on Sat, 11 Apr 2020 04:52:21 +0300

Docker Builds Redis Master-Slave Mode (Sentinel Monitoring) & SpringBoot 2.0 Integrated Redis Service (Lettuce Connection Pool)

1. Docker sets up Redis Master+Sentinel Monitoring Set up environment: Ubuntu 18.04.3 Docker 18.09.7 Download Mirrordocker pull redis (default redis:latest) Get the configuration file and modify it wget http://download.redis.io/redis-stable/redis.conf wget http://download.redis.io/redis-stable/sentinel.conf # Primary four slave port ...

Added by virtualdevl on Thu, 09 Apr 2020 08:54:36 +0300

I heard that you still can't figure out = = and equals in java?

I believe that a lot of readers know about = = and equals, and they know about = = and equals. In fact, it may be because there are too many blog articles and so on. After a period of baptism, they get lost. This article is clear again. Of course, if I think this article is too verbose, of course, I have taken it into consideration, because I d ...

Added by sameerni on Wed, 08 Apr 2020 15:51:42 +0300

go language series -TCP programming

TCP programming One of the main design goals of Go is to face the large-scale back-end service program. Network communication is the server, and the program is an indispensable and vital part Basic introduction of network programming There are two kinds of network programming Tcp socket programming is the mainstream of network programming. It i ...

Added by kat89 on Wed, 08 Apr 2020 08:05:01 +0300

go language system - from file operation to unit test

Catalog File operation Input and output streams Open and close files Functions and methods used Case demonstration Read file operation application case Write file operation application case Judge whether the file exists Application example of file programming Copy file Count the number of English, numbers, spaces and other characters ...

Added by ctjansen on Wed, 08 Apr 2020 08:00:29 +0300

The core implementation of kubernetes command execution

Command execution in K8s is jointly completed by apiserver, kubelet, cri, docker and other components. The most complex is protocol switching and various stream copying. Let's take a look at the key implementation. Although there are many codes, they should be able to understand without development. Good luck 1. Basic concepts There are many pr ...

Added by akelavlk on Wed, 08 Apr 2020 07:58:24 +0300

Object-oriented programming (encapsulated, polymorphic) Python version (Demo detailed)

This article introduces the knowledge points related to object-oriented programming (encapsulation, polymorphism), learning together and making progress together For a Python column, see: Life is short - I learn python Article Directory 1. Packaging 2. Polymorphism Class and instance attributes 4. Static an ...

Added by cyprus on Tue, 07 Apr 2020 05:58:23 +0300

Gradle's article is enough for 05 - Multi engineering builds

Multi engineering construction Maven realizes the combination of multiple modules by using modules. In Gradle, it can be realized by aggregating multiple project s. This article mainly introduces the specific usage. Multi engineering structure Create a three-tier structure as follows graph TD helloProject --> subProjectA helloProject ...

Added by jdnet on Mon, 06 Apr 2020 06:39:36 +0300