1. Introduction
JSP(Java Server Page )It is a dynamic webpage programming technology provided by SUN, and is a dynamic resource of Java Web server side.
JSPTechnology can provide:
·htmlStatic page
·Allow Java code to be nested in the page to provide dynamic data.
·Easy to Typesetting data.
When the Jsp is first accessed, the Jsp engine translates the Jsp into a servlet, which is stored in the work directory in Tomcat.
Two. Basic grammar
1、Notes
Display annotations (allowing clients to see):...
Unlike Springmvc global exceptions in traditional collections, see the previous section, https://www.cnblogs.com/zwdx/p/8963311.html
For the springboot framework, I will introduce one of them.
1、ExceptionHandlerAdvice
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* Handling exception information*@author wdh
*
*/
@ControllerAdvice
@ResponseBody
public class ExceptionHandlerAdvice extends MyEx...
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″ />
<title></title>
<script>
//Print narcissus number
var g, s, b;
for (var i = 100; i <= 999; i++) {
g = i % 10;
s = parseInt(i / 10) % 10;
b = parseInt(i / 100);
if (g * g * g + s * s * s + b * b * b == i) {
console.log(i);
}
}
</script>
</head>
<body>
</body>
</html>
The input analog signal is continuous in time and the output digital signal code is discrete. When the AD converter is converted, the input analog signal must be sampled at a series of selected moments (some specified points on the time coordinate axis), and then these sampled values are converted to digital quantities. GeneralThe AD conversion process is accomplished through three steps: sample and hold, quantization and coding.
ADParameters of converter:
Resolution: explain the resolution of AD converter to input signal.
Conversion error: the difference between the actual output of the AD...
__isset(); When an undefined property calls isset, it is called.
__unset(); When an undefined property calls unset, it is called.
__get(); When calling an undefined property in a class, it is called.
__set(); When a value is assigned to an undefined attribute in a class, it is called.
class C{
function __set($p, $p1){ var_dump(__METHOD__); }
function __get($p){ var_dump(__METHOD__); }
function __isset($p){ var_dump(__METHOD__); }
function __unset($p){ var_dump(__METHOD__); }}
$c = new C;var_dump(isset($c->a));unset($c->a);var_dump($c->a);$c->a = 1;
====...
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″ />
<title></title>
<script>
//Print 99 multiplication table
for (var i = 1; i <= 9; i++) {
for (var j = 1; j <= i; j++) {
document.write(j + “×” + i + “=” + i * j + “\t”);
}
document.write(“<br />”);
}
</script>
</head>
<body>
</body>
</html>
socketRealization
serverend
import socket
import subprocess
import struct
import json
# Buy a mobile phone
phone = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Insert phone card, port range 0-65535
# Look at the usage state of the port and enter netstat -an |findstr 8080 on the command line.
phone.bind(('127.0.0.1', 8081))
# Open the machine
phone.listen(3) # The number of semi connected pools is limited.
print('server start...')
# Waiting for phone connection request
while True: # Connection cycle
conn, clinet_address = phone.accept()
print(conn, clinet_address)
while ...
[BZOJ4242] kettle (Kruskal reconstruction tree, BFS)
surface”
BZOJHowever, it is a question of jurisdiction.
Description
JOIThe IOI city where you live is famous for its very hot season all year round.
IOIThe city is a rectangle divided into vertical H * horizontal W blocks, each of which is one of the buildings, fields, and walls. The area of the building is P, numbered 1… P.
JOIYou can only enter buildings and wilderness, and each time you can only walk to adjacent areas, and can not move outside the city.
JOIBecause of all kinds of things, he must travel between buildings. Al...