__new__(cls, *args, **kwargs)
Create an instance (usually cls or other types of instances)
__init__(self, *args, **Kwargs)
After the instance is created by new, it is executed before being returned to the caller
If new returns an instance of cls, the init method is automatically executed, self is the instance created, and the in ...
Posted by weknowtheworld on Fri, 03 Jul 2020 16:41:30 +0200
1. Implement fuzzy query in the controller and return the result to the view. (example of fuzzy query user name)
[front view code]
<form action="QueryUsername" method="post">
User name: < input type = "text" name = "username" / >
< input type = &q ...
Posted by mansuang on Wed, 01 Jul 2020 17:06:58 +0200
This question perfectly explains what "test case oriented programming" is. Because there are many situations to be considered, the basic idea is to first write rules to judge the invalid situation according to the given test cases, and then make special judgment on the remaining cases according to the submitted errors. If all "i ...
Posted by weiwei on Tue, 30 Jun 2020 10:51:32 +0200
The following are common HTML events:
onclick: the user clicks on the HTML element.
onchange: HTML element changes
onload: the browser has finished loading the page.
onmouseover: the user moves t ...
Posted by matt_4013 on Tue, 30 Jun 2020 05:29:11 +0200
Part of the inspiration comes from the article Java Concurrent Programming -- Lock
1. If h==t is true, h and T are both null or the same specific node, and there is no successor node. false is returned.2. If h!=t holds, head.next Whether it is null. If it is null, it returns true. When h!=t and h.next==null?? , may appear the first tim ...
Posted by ram4nd on Mon, 29 Jun 2020 09:57:37 +0200
Let yourself get used to C in effective c + +++
Label: effective C++
Item 1: treat C + + as a language Federation
C + + can be seen as a combination of four secondary languages. When you switch from a secondary language, efficient programming rules will requ ...
Posted by lisa3711 on Mon, 29 Jun 2020 06:58:29 +0200
CRC checks (cyclic redundancy checks) are the most commonly used checks in data communication.In embedded software development, CRC algorithm is often used to verify various data.Therefore, mastering basic CRC algorithms should be a basic skill for embedded programmers.However, few embedded pr ...
Posted by mispris006 on Sun, 28 Jun 2020 18:57:15 +0200
TCP network programming
UDP network programming
Http network programming
Understand that functions are first class citizens
HttpServer source reading
HttpClient source reading
Posted by nakago on Sun, 28 Jun 2020 08:54:44 +0200
Miss Lining has launched the Python programming thought e-book in the WeChat official account of geek origin, which includes the core technology of Python and the usage of Python's main function library. Readers can enter 160442 in the official account of geek origin and begin learning.
General cat ...
Posted by toro04 on Sun, 28 Jun 2020 05:29:10 +0200
1 the input and output of C + + are divided into three types:
1.1 console based I/O
1.2 file based I/O
1.3 string based I/O
2 header file
4. Specific analysis
4.1 istringstream class
4.2 ostringstream class
4.3 stringstream class
1 the input and output of C + + ar ...
Posted by bullbreed on Sun, 28 Jun 2020 04:35:28 +0200