public class InsertDemo { public static void main(String args[]) { int[] sort ={4,2,1,3,6,5,9,8,10,7} ; System.out.println("haha"+sort[0]); System.out ...
分类:
编程语言 时间:
2019-04-15 16:25:54
阅读次数:
166
1.初步体会到了更优算法对数据量大的测试的重要作用。 2.一开始我将temp[1000002]定义在主函数内,结果不能运行,定义成全局变量之后问题迎刃而解。原因如何我已发邮箱问老师,知晓结果后再做总结。 3.在理解求next[j]算法时,我体会到了用画图法分析有助于直观地认识算法本质,这对于理解复杂 ...
分类:
编程语言 时间:
2019-04-15 00:25:35
阅读次数:
106
for变量名in列表;do循环体done执行机制:依次将列表中的元素赋值给“变量名”;每次赋值后即执行一次循环体;直到列表中的元素耗尽,循环结束for循环列表生成方式:(1)直接给出列表(2)整数列表:(a){start..end}(b)$(seq[start[step]]end)(3)返回列表的命令$(COMMAND)(4)使用glob,如:.sh(5)变量引用$@,$for特殊格式双小括号方法
分类:
其他好文 时间:
2019-04-15 00:23:55
阅读次数:
156
使用环境:一般在项目首页或者项目后端配置中会使用到一些属性获取; package com.liuyc.study.utils; /** * 获取当前操作系统中或者当前环境中的一些默认配置 * @author Lion * @since 2019年4月13日18:19:29 */ public cla ...
分类:
其他好文 时间:
2019-04-13 19:02:06
阅读次数:
124
1 public class Yihuo { 2 public static void sun(int n) { 3 long start,end,sum,num,i,temp; 4 start=(long)Math.pow(10, n-1); 5 end=(long)Math.pow(10,n)-... ...
分类:
其他好文 时间:
2019-04-13 18:59:34
阅读次数:
156
1 #include 2 #include 3 4 5 #define N 4 6 int arr[N] = { 1, 2, 3, 4}; 7 8 9 void swap(int *a, int *b) 10 { 11 int temp = *a; 12 *a = *b; 13 *b = temp;... ...
分类:
编程语言 时间:
2019-04-13 17:42:26
阅读次数:
124
初步学习小程序模板,就把过程写一下了. 1.在app.json里面注册temlate/public,生成模板wxml,wxss等系列页面 2.注册模板 <1>无数据传参的模板 <2>带数据传参的模板 3.模板的使用 <1>引入模板页面 <2>使用模板 注意:引用的template传入的data参数名 ...
分类:
微信 时间:
2019-04-12 20:43:23
阅读次数:
221
ruby是动态语言,它有动态语言的优势与劣势 动态语言,像python与ruby 你不用提前去定义method - they need to only be "found" when invoked calling method dynamically: Dynamic Dispatch: 不需要c ...
分类:
Web程序 时间:
2019-04-12 13:40:07
阅读次数:
208
1 //获取当前节点的父节点(包括当前节点) 2 function getAllParentNode(parentNode){ 3 var arry = []; 4 arry.push(parentNode); 5 //boolean i = true; 6 while(true){ 7 par..... ...
分类:
其他好文 时间:
2019-04-12 13:21:40
阅读次数:
150
DirectoryInfo dir = new DirectoryInfo(AppContext.BaseDirectory); var path = dir.FullName + @"tempFile\"; var filePath = path + Guid.NewGuid() + fileNa... ...
分类:
Web程序 时间:
2019-04-12 11:56:51
阅读次数:
158