匿名内部类 创建对象和实现类的定义同步完成,必须实现一个接口或者继承一个类 package how2j; //根据要求找到相关信息的学生对象 //java中不允许函数回调,所以将函数方放在类或者接口中,所以在使用时传的是对象,或者接口实现类产生的对象 //lambda表达式是匿名内部类的简单写法 p ...
分类:
其他好文 时间:
2020-07-19 15:55:37
阅读次数:
53
NAME ls -- list directory contents 列出目录下的所有内容,默认是当前目录。 SYNOPSIS ls [-ABCFGHLOPRSTUW@abcdefghiklmnopqrstuwx1] [file ...] DESCRIPTION 选项比较多,下面是一些常用的: -A ...
分类:
其他好文 时间:
2020-07-19 15:48:39
阅读次数:
86
Description You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k lists ...
分类:
其他好文 时间:
2020-07-19 15:47:40
阅读次数:
73
MHA(MasterHighAvailability)目前在MySQL高可用方面是一个相对成熟的解决方案,它由日本DeNA公司youshimaton(现就职于Facebook公司)开发,是一套优秀的作为MySQL高可用性环境下故障切换和主从提升的高可用软件。在MySQL故障切换过程中,MHA能做到在0~30秒之内自动完成数据库的故障切换操作,并且在进行故障切换的过程中,MHA能在最大程度上保证数据
分类:
数据库 时间:
2020-07-19 11:25:24
阅读次数:
78
package LeetCode_1060 /** * 1060. Missing Element in Sorted Array * (Prime) * Given a sorted array A of unique numbers, find the K-th missing number s ...
分类:
其他好文 时间:
2020-07-19 00:49:27
阅读次数:
93
解决办法: 添加find_unused_parameters=true model=torch.nn.parallel.DistributedDataParallel(model,find_unused_parameters=true) ...
分类:
其他好文 时间:
2020-07-18 22:50:10
阅读次数:
287
首先来一段maven中的资源插件: 1 <build> 2 <resources> 3 <resource> 4 <directory>src/main/java</directory><!--所在的目录--> 5 <includes><!--包括目录下的.properties,.xml 文件都会扫 ...
分类:
其他好文 时间:
2020-07-18 22:45:44
阅读次数:
152
在使用spring项目接入携程 apollo 的时候,报了一个错误:Cause: [status code: 404] Could not find config for namespace - appId: housing102, cluster: default, namespace: appl ...
分类:
其他好文 时间:
2020-07-18 22:06:51
阅读次数:
150
1、当然首先还是需要先安装Python软件包的,推荐Python 3.X 2、打开Notepad++,【运行】--【运行】,或者直接按F5快捷键,输入如下命令: cmd /k cd /d "$(CURRENT_DIRECTORY)" & python "$(FULL_CURRENT_PATH)" & ...
分类:
编程语言 时间:
2020-07-18 22:01:22
阅读次数:
80
You are given three positive (i.e. strictly greater than zero) integers xx , yy and zz . Your task is to find positive integers aa , bb and cc such th ...
分类:
其他好文 时间:
2020-07-18 19:56:20
阅读次数:
82