Introduce oneself to
211606321
I’m Liu Jie
My hobbies are listening to music and playing games.
The most favorite is the four dumplings, the feeling of home.
The new semester is about to begin. Homework is falling from the sky.
Answer the following questions
(1)Think back to your idea of this major when you first entered university.
How did you make the decision of software engineering?
When the Times volunteered, they liked computers, and other professional types felt bad and chose software.
Do you think that the courses you met in the past two years are in line wit...
Spring MVC
If you can get a group string with read-only (RO) or read/write (RW) permissions, it will play an important role in extracting information from the device.snmp v1 v2In order to gain permission to manage a switch, you first need to find its SNMP community string.
SNMPscanning-Information gold mine-Often misplaced-public /private /manager
Tool introduction
1.onesixtyone
If you already know that the target group string is public, you can use this command to see the target system information
onesixtyone ip public
If you do not know the target group string
onesixtyone -c /usr/share/doc/onesix...
In general, a combo exit program can be set up in the main activity.
@Override//Press the two back key to exit.public boolean onKeyDown(int keyCode, KeyEvent event) { //Get the key and compare two times back time is greater than 2S do not quit, otherwise quit if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_DOWN) { if (System.currentTimeMillis() - exit_time > 2000) { Toast.makeText(MainActivity.this, "Then press Toast.LENGTH_SHORT.Show () again. exit_time = System.currentTimeMillis(); } else { finish()...
reModular
common method
findall()
Returns all eligible results in a list.
1 import re
2 print(re.findall('\d','a1b2c2abc123'))#['1', '2', '2', '1', '2', '3']
View Code
search()
Finding the first matching information returns an object containing matching information (returning None if not found), which looks at the result through the group () function
1 import re
2
3 str = 'a1b2c2abc123'
4 print(re.search('\d', str).group()) # 1
View Code
match()
Starting from string, location matching, others with search ()
1 import re
2
3 str = 'a1b2c2abc123'
4 print(re.match('\d', s...
【CSummary of language completion function
Under the header file < math.h>, four rounds, five entries, upwards rounding, and down rounding. See the documentation.
Four homes and five entries:double round(double arg);//Returns the nearest integer to arg.
Rounding up:double ceil(double arg);//Returns the smallest integer that is not less than arg.
Down to rounding:double floor(double arg);//Returns the largest integer greater than arg.
Examples:
#include <stdio.h>
#include <math.h>//round(),floor(),ceil()
int main()
{
//Rounding
printf("round(+2.33) = %+.1f...
Title: sorting problems.
Idea: Unordered_map is used to store the mapping between the examinee’s name and the score information structure. The score is initialized to – 1. Each score is updated when reading the data. Finally, the final score is calculated and the qualified students are saved into vector, and then sorted. It is important to note thatWhen calculating final results, remember “G must be rounded up to an integer”. The summing up function is summarized here.
Code:
#include <iostream>
#include <string>
#include <unordered_map>
#include <...
1. EL syntax and usage
EL(Expression Language)It is to make JSP easier to write.
1、Grammatical structure
${The name attribute value of the domain object}
2、Method of value acquisition
From small to large: page, request, session, application
If it is found, it shows, if it is not found, it continues to look up, and if it is not found in the application, it displays an empty string
If you need to fetch the value of the specified domain scope, you can set the corresponding domain scope (pageScope, requestScope, session Scope, ...