Are you sure you don't know about python anonymous functions anymore?

The previous chapter described custom functions, while anonymous functions are a special case of custom functions. It only needs one line to define functions and has a cool name 'lambda' 1, Foundation # definition lambda arg1,arg2,arg3,...argn:expression # For example, the previously defined my_sum function def my_sum(num1, num2): re ...

Added by wheelbarrow on Fri, 25 Feb 2022 15:15:13 +0200

Python Chapter 4 object oriented

object-oriented 1. Overview (just understand) # Object Oriented Programming (OOP) is a programming idea and a design and programming method to solve software reuse. # The essence is an abstract thinking process embodied in the establishment of a model. The model is used to reflect the characteristics of things in the real world. # Any kind of ...

Added by bskauge on Fri, 25 Feb 2022 15:12:03 +0200

Luogu P2387 [NOI2014] magic forest solution

Luogu P2387 [NOI2014] magic forest solution Title Link: P2387 [NOI2014] magic forest Meaning: each side has edge right a , b a,b a. B two, please 1 ...

Added by gckmac on Fri, 25 Feb 2022 15:08:30 +0200

C + + learning notes

catalogue I What is operator overloading II How operators are overloaded 1. Friend overload 2. Class member function overloading III Special operator overloading 1. Stream operator 2. Self increasing and self decreasing operator overloading and text overloading (1) Self increasing and self decreasing (2) Text overload (3) Implicit con ...

Added by xinnex on Fri, 25 Feb 2022 15:06:01 +0200

Database event

Database event Event is a procedural database object called by MySql at the corresponding time. An event can be called once or started periodically. It is managed by a specific thread, which is the so-called "event scheduler". Events are similar to triggers, which start when something happens. When a statement is started on the ...

Added by alex2046 on Fri, 25 Feb 2022 15:03:47 +0200

Java is really not difficult to Log4j log

Log4j log: What is Log4j? log4j is a common logging framework, which is used to record the execution process or exceptions of the application. It is recorded in the log file. The operation and exception information of the application can be known through the log file. Why log? We know that the program will produce a lot of information during ...

Added by Warptweet on Fri, 25 Feb 2022 14:59:00 +0200

JS data type - reference type

JS data type - reference type ··· 1. Array 1.1 basic syntax of array 1.1.1 array introduction Function: an array variable can store multiple dataComposition of array memory Elements: data in an arraySubscript: the position of data in the array (subscript will not jump)Length: number of elements 1.1.2 array syntax let variable name ...

Added by rhasce on Fri, 25 Feb 2022 14:44:23 +0200

[PostgreSQL] install PostgreSQL database based on CentOS system

1, Reference linkAlibaba open source mirror station OPSX mirror station Alibaba cloud developer communitypostgresql image - postgresql download address - postgresql installation tutorial - Alibaba open source image station 2, Introduction to PostgreSQLPostgreSQL is a free software object relational database management system (ORDBMS) with compl ...

Added by salhzmzm on Fri, 25 Feb 2022 14:43:33 +0200

RabbitMQ basic usage

Message queue Definition of Message queue The most common way of communication between services is to directly call each other to communicate. Messages can reach the other end immediately after they are sent from one end, which is called instant messaging (synchronous communication) After a message is sent from one end, it first enters a con ...

Added by pcwizzzz on Fri, 25 Feb 2022 14:35:06 +0200

[Spring] principle and implementation of AOP

1, Gossip I'm a little sleepy today, but I still insist on learning for a while. Today, let's take a look at another major feature of Spring, AOP 2, Basic points 1. Basic concepts AOP means aspect oriented programming. It is a technology to realize the unified maintenance of program functions through precompiled mode and dynamic agent during ...

Added by washbucket on Fri, 25 Feb 2022 14:33:29 +0200