public class Demo04 { public static void main(String[] args) { //整数拓展 二进制0b 八进制0 十进制 十六进制0x int i1=10; int i2=010; int i3=0x11; System.out.println(i1) ...
分类:
其他好文 时间:
2021-04-08 13:03:44
阅读次数:
0
解析properties文件 Properties properties = new Properties(); File file = new File("log4j properties"); //InputStream 是一个抽象类,不能new InputStream,但是可以创建一个子类的n ...
分类:
编程语言 时间:
2021-04-07 11:42:41
阅读次数:
0
一、pip安装selenium pip install -U selenium 二、pycharm自带方式来安装selenium 1、打开菜单栏file-settings,进入配置页面 2、在配置页面,点击“+”按钮 3、在搜索框中输入selenium,点击Install Package 4、安装成 ...
分类:
其他好文 时间:
2021-04-07 11:40:06
阅读次数:
0
1:公平锁和非公平锁 1.1 流程图 1.2 源码分析 ? 锁使用 final Lock lock = new ReentrantLock(); new Thread(()->{ lock.lock(); try { System.out.println(" "); Thread.sleep(100 ...
分类:
其他好文 时间:
2021-04-07 11:23:49
阅读次数:
0
下面这个例子和上面一样,除了说是子线程要join主线程。本例中还教会了大家,如何从主线程传参数到子线程。 例:1.5.3_2 class ThreadMark_to_win extends Thread { Thread mainT; Test t; public void run() { try ...
分类:
编程语言 时间:
2021-04-07 11:19:09
阅读次数:
0
@Test void contextLoads() { String str ="!dasd_asda_dasjdlkaj"; System.out.println(a(str)); } //截取字符串 转换大写并且输出 String a(String name) { String[] str= { ...
分类:
其他好文 时间:
2021-04-07 11:18:46
阅读次数:
0
A-AC 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K Special Judge, 64bit IO Format: %lld 题目描述 Crystal's fortune predict system is successfully de ...
分类:
其他好文 时间:
2021-04-07 11:07:42
阅读次数:
0
原因:未将客户端上传的File文件,处理为MultipartFile 解决:在xml中配置如下 <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver ...
分类:
其他好文 时间:
2021-04-07 10:53:58
阅读次数:
0
伪指令不是真正的指令,而是为了方便NASM汇编器而存在,但是它们的地位与真正的指令相同: label: instruction operands ; comment instruction部分就可以是伪指令 Dx和RESx Dx声明初始化的数据: db 0x55 ; just the byte 0x ...
分类:
其他好文 时间:
2021-04-07 10:53:23
阅读次数:
0
static关键字 public class OOPDemo01 { //2:赋初值 { System.out.println("匿名代码块"); } //1:只执行一次 static{ System.out.println("静态代码块"); } //3 public OOPDemo01(){ S ...
分类:
其他好文 时间:
2021-04-07 10:49:07
阅读次数:
0