1、监听事件:以 Listener包裹组件支持的监听包含: onPointerDown,onPointerMove,onPointerUp,onPointerCancel。 同 Listener 类似,有 IgnorePointer(忽略本身),和AbsorbPointer(不忽略本身)。 忽略事件 ...
分类:
其他好文 时间:
2020-03-15 13:21:27
阅读次数:
52
[TOC] 一、Collection接口操作集合元素的方法 Collection接口是List、Set、Queue接口的父接口,该接口里定义了即可以用于操作Set集合,也可以用于操作List和Queue集合。Collection接口里定义操作集合元素的方法: ★boolean add(Object ...
分类:
编程语言 时间:
2020-03-14 22:06:50
阅读次数:
50
${name[*]}代表了数组中所有元素(all of the elements) ${name[@]}代表了数组中每一个元素(each of the elements),这个表达式与前一个基本相同。就是当在表达式两边加双引号输出时,稍微不同,前者是会输出所有元素包括元素分隔符,后者只输出每个元素。 ...
分类:
编程语言 时间:
2020-03-14 18:23:49
阅读次数:
73
1009 Product of Polynomials (25分) This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file cont ...
分类:
其他好文 时间:
2020-03-14 17:02:41
阅读次数:
48
Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. Your class will have ...
分类:
其他好文 时间:
2020-03-14 13:06:36
阅读次数:
50
Problem 给定n个正数,从中选出K个来使得他们的和为S,请问一共有多少种方法? Input: The first line, an integer T<=100, indicates the number of test cases. For each case, there are two ...
分类:
其他好文 时间:
2020-03-14 12:52:39
阅读次数:
49
三、使用docker镜像 1.1.获取镜像 docker [image] pull NAME[:TAG] 直接从docker hub镜像源上来下载镜像 1.1.2.栗子 获取ybuntu 18.04系统镜像 docker pull ubuntu:18.04 注意:如果不加后面的tag,那么会选择最新 ...
分类:
其他好文 时间:
2020-03-14 12:36:51
阅读次数:
63
欢迎回来,这里是做图论已经做到疯了的爱上了图论的Darth Victor。没错今天又是图论题,最近一直在刷图论。 题目 N cities named with numbers 1 ... N are connected with one-way roads. Each road has two pa ...
分类:
其他好文 时间:
2020-03-14 10:59:13
阅读次数:
51
04-树5 Root of AVL Tree (25分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node dif ...
分类:
其他好文 时间:
2020-03-13 19:01:17
阅读次数:
77
重点速览 数组变量是数组的管理者 foreach循环并不能改变原数组(或其他容器)中元素的值 数组是一种容器,其中, 所有元素类型相同 大小不可改变 定义数组变量 元素个数必须给出,可以是变量 或直接用{}给出所有的元素 数组变量与普通变量的区别 普通变量:对数据是所有者,如i=10整型数i拥有一个 ...
分类:
编程语言 时间:
2020-03-13 17:05:02
阅读次数:
59