[PAT] grade B 1003 I want to pass (20 points)

"Correct answer" is the most gratifying reply given by the automatic question judgment system. This question belongs to PAT's "correct answer" distribution - as long as the read string meets the following conditions, the system will output "correct answer", otherwise it will output "wrong answer". The co ...

Added by bubazoo on Tue, 04 Jan 2022 16:00:53 +0200

Read Go generic design and usage scenarios

preface2021.12. On the 14th, Go officially released Go 1.18beta1, which supports generics, which is the most significant functional change of Go language since its birth in 2007.There are three concepts at the core of generics:Type parameters for functions and typesType parameters, which can be used for generic functions and generic typesType s ...

Added by NoReason on Tue, 04 Jan 2022 11:32:46 +0200

Learn Python web crawler in five minutes

But anyway, crawler technology is innocent, and it is still worth our developers to learn about it. Before learning, we still need to understand the relevant concepts. What is a reptile Web crawler: also known as web spider, web robot, is a program or script that automatically grabs World Wide Web information according to certain rules. The ...

Added by CyberShot on Tue, 04 Jan 2022 02:39:52 +0200

23 days to understand the abstract factory pattern of design pattern

Hello, I'm Xiao Huang, a Java development engineer in Unicorn enterprise The school recruits dozens of offer s, with an average annual salary of 20W~40W Thank you for meeting us in the vast sea of people, As the saying goes: when your talent and ability are not enough to support your dream, please calm down and learn, I hope you can study and w ...

Added by LooieENG on Mon, 03 Jan 2022 13:00:40 +0200

Five unknown advanced features of Python

The high-level features of any programming language are usually discovered through a lot of experience. For example, you are writing a complex project and looking for the answer to a question on stack overflow. Then you suddenly found a very elegant solution that uses Python functions you never knew! This way of learning is so interesting: dis ...

Added by robinhood on Mon, 03 Jan 2022 12:46:26 +0200

[elegant code] 03 optional null pointer exception

[elegant code] 03 optional null pointer exception Welcome to b station official account / public number [hexagon warrior Xia Ning], a man who wants to fill all the indicators. The article has been published in github directory Included. The handsome and beautiful in front of the screen, if it helps you, please like it and add a collection, ...

Added by shantred on Mon, 03 Jan 2022 11:46:58 +0200

Resolved: resolved the problem of multiple timer conflicts in Spring Boot multithreading environment

Forwarding official account: IT Ranch Tactical Analysis: There must be more than one timer in the actual development project, which needs to be used in many scenarios, and the problem brought by multiple timers is how to avoid the conflict of multiple timers Usage scenario: Our order service generally has an order to be paid, which has a ti ...

Added by anoopmail on Mon, 03 Jan 2022 08:52:55 +0200

Interviewer: the new version of Redis begins to introduce multithreading. What's your opinion?

As a memory based cache system, Redis has always been known for its high performance. Without context switching and lock free operation, even in the case of single thread processing, the read speed can reach 110000 times / s and the write speed can reach 81000 times / s. However, the single thread design also brings some problems to Redis: On ...

Added by artisticre on Mon, 03 Jan 2022 04:08:44 +0200

Python game development, pygame module, python implementation of brick games

preface: In this issue, we will use python to make a brick playing game. There is no more nonsense. Let's start happily~ Effect display [external chain picture transfer failed. The source station may have anti-theft chain mechanism. It is recommended to save the picture and upload it directly (img-rdjcy4gn-1628066851206)( https://p3-juejin.b ...

Added by starnol on Sun, 02 Jan 2022 20:23:52 +0200

Go Style C + + collaboration library CO Quick Start Guide

github https://github.com/idealvin/co Reference documents chinese: github giteeEnglish: github gitee What is CO CO is an elegant and efficient C + + basic library, which supports Linux, Windows, Mac and other platforms. It implements a series of high-quality basic components such as golang like coprocess, coprocess based network programmin ...

Added by oughost on Sun, 02 Jan 2022 05:22:57 +0200