我看到常用的就写上去,如果你们有,可以在评论上发表,我再把它补充到我的随笔中 some() var ages = [3, 10, 18, 20];function checkAdult(age) { return age >= 18;}function myFunction() { document ...
分类:
Web程序 时间:
2020-07-13 13:16:27
阅读次数:
97
death bed (coffee for your head) - Powfu / beabadoobee ...
分类:
其他好文 时间:
2020-07-13 10:01:24
阅读次数:
200
David Hayden blogged about a cool new ROW_NUMBER() function that SQL 2005 provides that got me excited and inspired to write a little code last night. ...
分类:
Web程序 时间:
2020-07-13 09:20:41
阅读次数:
76
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:
其他好文 时间:
2020-07-12 18:48:43
阅读次数:
50
@Test public void test1(){ File file1 = new File("/Users/truman/Desktop/Life"); System.out.println(file1); System.out.println(file1.isDirectory()); Fi ...
分类:
编程语言 时间:
2020-07-12 12:26:01
阅读次数:
67
2020/7/11 今天学习了匿名对象,与c++相比这也是一个多出来的知识点, (1)如果对一个对象只需要进行一次方法调用,那么就可以使用匿名对象。 (2)将匿名对象作为实参传递给一个方法调用。如一个程序中有一个getSomeOne()方法要接收一个MyClass类对象作为参数。 疑惑:缺省访问控制 ...
分类:
编程语言 时间:
2020-07-11 22:58:21
阅读次数:
85
A string s is called an (k,l)-repeat if s is obtained by concatenating k>=1 times some seed string t with length l>=1. For example, the string s = aba ...
分类:
其他好文 时间:
2020-07-11 00:16:01
阅读次数:
65
【问题描述】 Failed with error: dst refspec 1.9.3-20100630 matches more than one. failed to push some refs to 'git@xxxxxx.git' 【问题根源】 tag名字和分支名字一样 【解决方案】 删除 ...
分类:
其他好文 时间:
2020-07-10 15:10:11
阅读次数:
59
临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 默认使用 # windows系统使用cmd快速设置 pip install pip -U # 升级pip到最新版本 pip config set glo ...
分类:
其他好文 时间:
2020-07-10 11:31:59
阅读次数:
180
一、修改源数组 以下所有方法都是在操作源数组 1.1 some()方法 根据条件修改源数组中的元素 let persons = [ {name:'langkye',age:18}, {name:'alex',age:20}, ]; persons.some((person)=>{ if(person ...
分类:
编程语言 时间:
2020-07-10 11:21:29
阅读次数:
88