Python WEB learning notes - WEB server
WEB server learning notes
1, Build a static web server
1. What is a static Web server?
A program that can provide static documents for the requesting browser. Usually, when we browse Baidu news, the news data will change every day. The page we visit is dynamic, while what we develop is static, and the data of the page will not change.
2. Ho ...
Posted by deko on Fri, 11 Feb 2022 09:46:35 +0100
es6 series promise, async, await
1, promise1. IntroductionPromise is a solution for asynchronous programming, which is more reasonable and powerful than the traditional solution "callback functions and events".Advantages of asynchronous operation:Chain operation reduces the difficulty of coding (solving the problem of callback hell)Code readability is significantly e ...
Posted by cptnwinky on Fri, 11 Feb 2022 09:45:37 +0100
Detailed explanation of multithreading
Detailed explanation of multithreading
1, Thread introduction
Processes and threads:
2, Thread Basics
Common method calls and multithreading:
1. Thread creation
There are three ways to create threads:
Thread.class: inherits the thread class.Runable interface: implements the Runnable interface.Callable interface: implements the ca ...
Posted by Prodigal Son on Fri, 11 Feb 2022 09:42:40 +0100
Poisson Distribution
definition:
Real life is mostly subject to Poisson distribution
Suppose you work in a call center, how many calls will you receive in a day? It can be any number. Now, the total number of calls in a call center in a day can be modeled by Poisson distribution. Here are some examples:
The number of emergency calls recorded by the hospital i ...
Posted by mitchell on Fri, 11 Feb 2022 09:40:56 +0100
Various implementation schemes of tab
1. First build structure and style
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>tab </title>
<style>
* {
margin: 0;
padding: 0;
}
ul {
list-style: none;
}
.box {
width: 500px;
...
Posted by supinum on Fri, 11 Feb 2022 09:39:10 +0100
Linux from scratch environment construction and learning V1
preface
1. Server and system version
Article based Tencent cloud Server linux centos7 nine
2. Why reinstall the system
When Tencent cloud first bought, the security group was fully open by default and the firewall was closed by default
When I operated redis, I allowed external access without setting a password. It was easy to be invaded. A ...
Posted by st0rmer on Fri, 11 Feb 2022 09:36:36 +0100
My girlfriend worked overtime in the middle of the night and took selfie. After a wave of analysis, the python engineer called me a liar
it happened like this
The little brother of python development who is preparing to leave work
Got a call from my girlfriend that she's going to work overtime tonight
And send him a self photo with a blurred background
As follows ↓↓
The sensitive little brother is suspicious. Will there be a cap of forgiveness
Then python ro ...
Posted by mattheww on Fri, 11 Feb 2022 09:35:13 +0100
Design and implementation of computer network course design and network chat program
Experimental topic
Design and implementation of network chat program
Experimental purpose
1. Understand Socket The principle of communication, learn to use Socket for simple network programming, and write a chat program on this basis.
2. Understand Qt programming and be familiar with C + + language.
overall design
1. Background knowledge
So ...
Posted by intenz on Fri, 11 Feb 2022 09:24:44 +0100
9. Operators in Java
Operators in Java
Author: Han Ru
Company: procedural coffee (Beijing) Technology Co., Ltd
Program coffee: IT vocational skill evaluation platform
website: https://www.chengxuka.com
task
1.Arithmetic operator
2.Assignment Operators
3.Comparison operator
4.Logical operator
5.Bitwise Operators
6.Shift Bitwise Operators
7.Ternary ...
Posted by dombrorj on Fri, 11 Feb 2022 09:09:23 +0100
HashMap Implementation Principle and Source Code Interpretation
Preface
When it comes to the implementation principle of HashMap, most of the little buddies think about the structure of "based on arrays and lists or red and black numbers" in their minds, and many people also say that during interviews. This answer is definitely impossible for the interviewer, and I find that the implementation pr ...
Posted by tfburges on Fri, 11 Feb 2022 09:01:49 +0100