JavaSE基础——方法详解 一、初识方法 对于之前常用的一条语句System.out.println(),有以下说明: println()是一个方法 System是系统类 out是标准输出对象 该语句就是调用系统类System 中的标准输出对象 out 中的 println()方法。 Java方法 ...
分类:
编程语言 时间:
2021-04-13 12:25:28
阅读次数:
0
1°单if语句 结构: if (/*条件*/){ /*执行体*/; } 例子: int age = 19; if (age > 18){ System.out.println('打机'); } System.out.println('回家'); 2°标准if...else...语句 例子: int ...
分类:
其他好文 时间:
2021-04-13 12:21:28
阅读次数:
0
IDEA中使用Tomcat解决中文乱码问题 首先在Tomcat的Configurations中配置VM options: -Dfile.encoding=UTF-8 如果操作1不行,就设置IDEA的编码: 在Setting中选择File Encodings: Global Encoding选择UTF ...
分类:
其他好文 时间:
2021-04-13 12:20:15
阅读次数:
0
详细错误如下 System.AggregateException:“Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Swashbuckl ...
成员变量的注入是在Bean创建成功之后,通过setter方法进行注入的。所以下面会获取不到值 @RestController public class VipsoftImController { @Autowired private ZooKeeperUtil zooKeeperUtil; @Req ...
分类:
其他好文 时间:
2021-04-13 12:07:49
阅读次数:
0
#coding:utf-8 import xlrd,requests file_name = r"F:\pythonScript\map_dp\data_center\data_config\second_disaster_of_agriculture_and_natural_gas.xls" wo ...
分类:
编程语言 时间:
2021-04-13 11:59:05
阅读次数:
0
"""@File : ${NAME}.py@Author : name@Time : ${DATE} ${HOUR}:${MINUTE}@explain :""" ...
分类:
其他好文 时间:
2021-04-13 11:58:13
阅读次数:
0
前面,我们学习了文件的读(read)和写(write),都是用open()方法打开文件并获取文件流。然后在读或写操作完成后进行流的关闭(close).有时候,最后的流关闭很容易被忽略,从而导致了内存泄漏的问题。 今天要说的就是with,用于自动关闭流。 用法:with open(file, mode ...
分类:
编程语言 时间:
2021-04-13 11:57:38
阅读次数:
0
明显的格式化字符串漏洞,没什么好说的 通过%x找到偏移为8 还是改got表,但是这题没有后门函数,将got表泄露后得到libc基址 然后找到system和bin/sh的地址即可 但我就不明白了他们咋就搞到onegadget的 然后利用格式化字符串漏洞时原来pwntools自带工具的,震惊我一年 使用 ...
分类:
其他好文 时间:
2021-04-13 11:52:03
阅读次数:
0
include "flag.php"; 被包含文件先按参数给出的路径寻找,如果没有给出目录(只有文件名)时则按照 include_path 指定的目录寻找 $a = @$_REQUEST['hello']; 代表 $_REQUEST 将包含 $_GET 和 $_POST 的值,并且当 $_GET 和 ...
分类:
Web程序 时间:
2021-04-13 11:51:24
阅读次数:
0