获取当前目录下的文件和子文件夹 System.out.println(" list()方法 "); File dir2=new File("d:\\"); String[] list = dir2.list(); for (String string : list) { System.out.pri ...
分类:
其他好文 时间:
2018-04-17 22:24:58
阅读次数:
125
Integer a = Integer.valueOf(127); Integer b = Integer.valueOf(127); Integer c = Integer.valueOf(128); Integer d = Integer.valueOf(128); System.out.pri ...
分类:
其他好文 时间:
2018-04-07 17:40:25
阅读次数:
128
1.假设一年期利率为3.25%,计算一下需要过多少年,一万元的一年定期存款连本带利能翻番 money = 10000#钱 interest = 0.0325#利率 count = 0#次数 while money < 20000: count+=1 money+=money*interest pri... ...
分类:
编程语言 时间:
2018-04-05 01:26:37
阅读次数:
175
描述 完成链表的创建、元素查找和删除等操作。 部分代码已经给出,请补充完整,提交时请勿包含已经给出的代码。 void PrintLinkList(Node *head) { int flag = 0; Node *p = head->next, *q; while(p) { if(flag) pri ...
分类:
其他好文 时间:
2018-04-02 01:05:58
阅读次数:
120
package n; import java.util.Scanner; public class jiechen { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.pri ...
分类:
其他好文 时间:
2018-04-01 21:54:52
阅读次数:
145
Those are my principles, and if you don't like them... well, I have others. 那是我的原则,要是你不喜欢......那我还有其他原则。 From Groucho Marx. Please hold on to your pri ...
分类:
其他好文 时间:
2018-04-01 15:23:13
阅读次数:
193
##lambda表达式:替代简单函数用 (反而增加了代码阅读难度,不建议使用) def fg(a1,a2): return a1+a2 qq = lambda a1,a2 : a1+a2 a1 = 11a2 = 22 QQ = fg(a1,a2)ii = qq(a1,a2) print(QQ)pri ...
分类:
其他好文 时间:
2018-04-01 12:01:00
阅读次数:
141
File f = new File("d:/LOLFolder/LOL.exe"); System.out.println("当前文件是:" +f); //文件是否存在 System.out.println("判断是否存在:"+f.exists()); //是否是文件夹 System.out.pri ...
分类:
编程语言 时间:
2018-03-26 23:32:37
阅读次数:
327
一、java语言 1.1 支持面向对象编程oop 强调支持,因为java同样可以面向过程编程。 oop的三大特性是:封装、继承、多态。 封装主要针对成员变量而言,oop的思想要求成员变量均为私有,不应该对外能够访问,一个符合oop思想的类应该只有公共方法对外能够访问; 继承,主要理解继承体系,pri ...
分类:
编程语言 时间:
2018-03-21 17:27:42
阅读次数:
217
如果对优化选择器的执行计划不满意,可以使用优化选择器提供的几个提示来控制最终的执行计划。可以用的提示如下所示: HIGH_PRIORITY和LOW_PRIORITY 这两个提示用于告诉Mysql,当多个语句的时候同时访问同一张表的时候,哪些语句的优先级高些,哪些语句的优先级低一些。 HIGH_PRI ...
分类:
其他好文 时间:
2018-03-11 11:45:49
阅读次数:
139