主要记录学习swift;学习网址为:https://www.journaldev.com/15163/swift-closure 基础 1.switch-fallthrough Swift中应用switch时,不再需要使用break结束;如果想继续下个判断,可以用fallthrough结尾。 let ...
分类:
编程语言 时间:
2021-06-18 20:12:06
阅读次数:
0
您需要在二叉树的每一行中找到最大的值。 示例: 输入: 1 / \ 3 2 / \ \ 5 3 9 输出: [1, 3, 9] 解法一:宽度优先搜索 List<Integer> res = new ArrayList<>(); public List<Integer> largestValues(T ...
分类:
其他好文 时间:
2021-06-18 19:10:47
阅读次数:
0
基础数据类型 int >Integer long >Long float >Float double >Double boolean >Boolean char[] >String 数组 基本类型的一组数据,使用数组来表示 int[] arrs = new int[5]; 数据越界问题--QA需注意 ...
分类:
编程语言 时间:
2021-06-17 16:34:13
阅读次数:
0
public class WeightProcessor { private final Map<Integer, List<String>> map = new HashMap<>(); //保存权重值和地址 private final Integer[] weight; //保存权重值,用于负载 ...
分类:
其他好文 时间:
2021-06-16 18:35:22
阅读次数:
0
mybatis plus技巧,插入数据时,怎么插入自定义的id信息,不走自增策略 在实体类中: @TableId(value = "id", type = IdType.AUTO) private Integer id; 改成 @TableId(value = "id", type = IdType ...
分类:
其他好文 时间:
2021-06-15 18:18:15
阅读次数:
0
You are given two strings s and p where p is a subsequence of s. You are also given a distinct 0-indexed integer array removable containing a subset o ...
分类:
其他好文 时间:
2021-06-15 18:05:39
阅读次数:
0
<% page language="java" contentType="text/html; charset=gbk" pageEncoding="gbk"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ".w3. ...
分类:
其他好文 时间:
2021-06-15 17:34:59
阅读次数:
0
一、改变原始数组的方法: 1、pop() 删除 arrayObject 的最后一个元素,把数组长度减 1,并且返回它删除的元素的值。如果数组已经为空,则 pop() 不 改变数组,并返回 undefined 值。arrayObject.pop() 。 2、push() push() 方法可把它的参数 ...
分类:
编程语言 时间:
2021-06-13 10:56:48
阅读次数:
0
flask常用的模型字段和参数 常用的字段类型表 字段说明 映射到数据库对应类型 Integer 整数 int类型 String 字符串,String类内可选择length参数的值用于设置最大字符个数 varchar类型 Text 用于储存较长的Unicode文本,,理论上可以储存65535个字节 ...
分类:
其他好文 时间:
2021-06-13 10:49:14
阅读次数:
0
package cn.ruhsang.gaoji;import java.util.concurrent.Callable;import java.util.concurrent.ExecutionException;import java.util.concurrent.FutureTask;// ...
分类:
编程语言 时间:
2021-06-13 10:28:58
阅读次数:
0