关于编程语言中的注释,其重要性基本上已为大家所共识。 然而关于注释的规范,这个话题就像我们之前聊过的缩进、终止符和命名方式一样,众口难调。 注释符通常可分为两种,即行注释与块注释(inline/block),它们在不同的编程语言中的符号可谓让人眼花缭乱。 比如行注释符,它至少有以下的 17 种之多( ...
分类:
编程语言 时间:
2020-07-19 21:14:05
阅读次数:
89
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
sketch_200718a文件 Star[] stars = new Star[600]; float speed; void setup(){ size(400, 400); for(int i = 0; i < stars.length; i++){ stars[i] = new Star() ...
分类:
其他好文 时间:
2020-07-18 22:00:58
阅读次数:
138
前提:需要提前下载JDK 1.下载地址:https://kafka.apache.org/ 2.需要先启动ZooKeeper服务器(可以通过与kafka打包在一起的便捷脚本来快速简单地创建一个单节点ZooKeeper实例。) 命令: bin\windows\zookeeper-server-star ...
任务Task与线程Thread不可比。Task是为了利用多CPU多核的机制而将一个大任务不断分解成小任务,这些任务具体由哪一个线程或当前线程执行由OS来决定。如果你想自己控制由哪一个Thread执行,要么自己定议task的scheduling, 要么自己来创建Thread来执行代码。 1)task是 ...
public class YieldExcemple { public static void main(String[] args) { Thread threada = new ThreadA(); Thread threadb = new ThreadB(); // 设置优先级:MIN_PRI ...
分类:
其他好文 时间:
2020-07-18 15:58:16
阅读次数:
68
有时候我们需要获取某一变量的类型时有哪些方法? 使用反射的方法: 变量名.getClass().getSimpleName()来判断。 使用 instanceof 来判断:变量名 instanceof 类型来判断。 1.使用反射的方法来判断 使用 instanceof 来判断 ...
分类:
编程语言 时间:
2020-07-18 00:47:27
阅读次数:
150
前言 在测试过程中经常遇到文件上传的功能,文件的大小边界值测试一直没有好的解决办法,这里我分享一个创建文件的脚本希望对大家有帮助。 demo """ * Create by dell on 2020/7/10 * Author :wencheng * 微信公众 :自动化测试 To share """ ...
分类:
编程语言 时间:
2020-07-17 22:20:01
阅读次数:
115
The k-means algorithm captures the insight that each point in a cluster should be near to the center of that cluster. It works like this: first we cho ...
分类:
其他好文 时间:
2020-07-17 21:58:52
阅读次数:
87
###docker常用命令: docker ps // 查看所有正在运行容器 docker stop containerId // containerId 是容器的ID docker ps -a // 查看所有容器 $ docker ps -a -q // 查看所有容器ID docker stop ...
分类:
其他好文 时间:
2020-07-17 19:45:35
阅读次数:
75