匿名内部类 创建对象和实现类的定义同步完成,必须实现一个接口或者继承一个类 package how2j; //根据要求找到相关信息的学生对象 //java中不允许函数回调,所以将函数方放在类或者接口中,所以在使用时传的是对象,或者接口实现类产生的对象 //lambda表达式是匿名内部类的简单写法 p ...
分类:
其他好文 时间:
2020-07-19 15:55:37
阅读次数:
53
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
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
在使用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
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
C++基本操作 vector #####如何查找 第二维?或者第一维 【链接】对vector中的pair进行多次find操作 class isE{ isE(int val) :User(val){} bool operator()(const pair<int,int>& e)const{ retu ...
分类:
编程语言 时间:
2020-07-18 13:48:27
阅读次数:
77
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:
其他好文 时间:
2020-07-17 13:33:50
阅读次数:
46
find 默认在当前 即 . 目录下查找 du 文件名 / 目录 # 查看文件占用内存大小 1. 按照文件名查找 find / -name qwe # qwe为文件名 find / -name *qwe* # * 为模糊匹配 2. 按照文件类型查找 find / -type d # 查找目录文件 f ...
分类:
系统相关 时间:
2020-07-17 09:38:41
阅读次数:
133
Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a ...
分类:
其他好文 时间:
2020-07-17 01:14:23
阅读次数:
90