编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 1 package G; 2 3 public class G1 { 4 5 public static void main(String[] args) { 6 // TODO Auto-gener ...
分类:
编程语言 时间:
2021-04-21 13:00:48
阅读次数:
0
| # 多任务-进程/线程/协程 | | | | ## 1.多任务的概念 | | | | ### 1.1 并行和并发 | | | | - 单核cpu实现多任务 | | - 时间片轮转 | | - 每个任务执行很短的时间 | | - 假的多任务 | | - 并发 | | | | ![image-202 ...
分类:
编程语言 时间:
2021-04-21 12:57:57
阅读次数:
0
终止流程代码 public void stopProcessInstanceById(String processInstanceId) { ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().p ...
分类:
其他好文 时间:
2021-04-21 12:45:00
阅读次数:
0
Python 打包成 exe 之后,是否能从二进制文件中恢复出源代码?没有加密的话是可以的。 首先需要解包。 直接从 github 上下载就行:https://github.com/countercept/python-exe-unpacker 使用也简单:python pyinstxtractor ...
分类:
编程语言 时间:
2021-04-21 12:39:04
阅读次数:
0
Java 输入输出流,Java InputStream FileInputStream OutputStream FileOutputStream ©Copyright 蕃薯耀 2021-04-20 https://www.cnblogs.com/fanshuyao/ 一、字节流和文件流使用,实现文 ...
分类:
编程语言 时间:
2021-04-21 12:36:15
阅读次数:
0
Main: public class Main { public static void main(String[] args) { Prizes<String> prizes = new Prizes<>(); prizes.addPrizes("一等奖: 荣耀40S手机 一部"); prizes ...
分类:
编程语言 时间:
2021-04-21 12:33:09
阅读次数:
0
Python 简介 Python 入门教程 Python 编写代码语法 Python 注释作用写法及示例代码 Python 变量 Python 数据类型 Python 字符串(String)的使用 Python Number(数字)数值数据类型 Python 数据类型转换(Casting) Pyth ...
分类:
编程语言 时间:
2021-04-21 12:31:32
阅读次数:
0
有时我们有一个带着文件名的路径如“/home/user/file.py” 我们不要“/file.py”,只要“/home/user”这个路径。 我想到的办法 1.用.rfind()和.replace() 注意:.rfind("/")是指从字符串最后开始查找找到第一个“/”的位置,也就是该字符串最后一 ...
分类:
编程语言 时间:
2021-04-21 12:30:42
阅读次数:
0
堆排序 public class HeapSort { public static void main(String[] args) { int[] arr = {1, 3, 519, 2, 10, 8, 0, 998}; heapSort(arr); System.out.println(Arra ...
分类:
编程语言 时间:
2021-04-21 12:26:45
阅读次数:
0
1,基本数据类型 定义 :4类8种: 数值型: 整数型Byte,short ,int ,long 浮点数类型:float,double 布尔类型:boolean 引用数据类型:string 获取取值范围 注意点 2,数据之间的转换 ctrl+1提示错误 分类 1.自动转换(隐式类型转换) 小-》大 ...
分类:
编程语言 时间:
2021-04-21 12:25:03
阅读次数:
0