which /usr/bin/which 搜索命令所在目录及别名信息 which lsalias ls='ls --color=auto'/usr/bin/ls which rmalias rm='rm -i' /usr/bin/rm /bin/rm /tmp/test2 这个没有询问确认,直接删除 ...
分类:
系统相关 时间:
2018-08-19 11:07:56
阅读次数:
191
LINQ分组取出第一条数据 Person1: Id=1, Name="Test1" Person2: Id=1, Name="Test1" Person3: Id=2, Name="Test2" 以上list如果直接使用distinct方法进行过滤,仍然返回3条数据,而需要的结果是2条数据。下面给出 ...
分类:
其他好文 时间:
2018-08-18 00:43:45
阅读次数:
368
package com.yikuan.cn; import java.util.ArrayList;import java.util.Collection;import java.util.Date; public class Test2 { public static void main(Stri ...
分类:
其他好文 时间:
2018-08-18 00:43:39
阅读次数:
130
1、 尝试通过if-else来解决异常问题: Eg: public class Test2 { public static void main(String[] args) { Scanner in = new Scanner(System.in); … System.out.print("请输入除 ...
分类:
编程语言 时间:
2018-08-15 12:35:27
阅读次数:
690
D. Vasya And The Matrix time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Now Vasya is taking ...
分类:
其他好文 时间:
2018-08-05 00:31:39
阅读次数:
146
with open("testt","r") as f1: list1 = f1.readlines() print(list1) list1 = set(list1) with open("test2","r") as f2: list2 = f2.readlines() print(list2)... ...
分类:
编程语言 时间:
2018-07-30 00:34:02
阅读次数:
153
JDBC事务 String URL="jdbc:sqlserver://localhost:1433;databaseName=test2"; String USER="sa"; String PASSWORD="sapassword"; try { Class.forName("com.micro ...
分类:
数据库 时间:
2018-07-29 16:25:21
阅读次数:
164
说明:待执行测试用例放到"d:\\Python37\\testcase",文件命名格式可改成test1.py,test2.py等等,文件名不要有空格,否则识别不了。 #coding:utf-8import unittestimport HTMLTestRunnerdef all_case(): #待 ...
分类:
Web程序 时间:
2018-07-29 11:48:38
阅读次数:
687
D. Xenia and Bit Operationstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output D. Xenia and Bit Ope ...
分类:
其他好文 时间:
2018-07-29 00:47:40
阅读次数:
147
我们知道在ES6中,引入了箭头函数,其本质就是等同有ES5中的函数。类似于下面的写法: let test1=() => “abc”; let test2=() => { return “abc”}; let sum=(a,b) => a+b; 比如上面的3个ES6的箭头函数的写完,如果用ES5就像下 ...
分类:
其他好文 时间:
2018-07-27 19:29:25
阅读次数:
148