在java中的异常处理和c#中的异常处理是一样的都是用try-catch语句。基本语法如下 try { //此处是可能出现异常的代码 } catch(Exception e) { //此处是如果发生异常的处理代码 }finally语句 ...
分类:
编程语言 时间:
2014-06-19 09:31:42
阅读次数:
242
这题是黄巨大出的比赛题.http://poj.org/problem?id=3278DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediatel...
分类:
其他好文 时间:
2014-06-19 00:58:53
阅读次数:
510
Selenium的延迟等待分为 显式等待(Explicit Wait) & 隐式等待(Implicit Wait).1.显式等待显式等待,就是明确的要等到某个元素的出现或者是某个元素的可点击等条件,等不到,就一直等,除非在规定的时间之内都没找到,那么就跳出Exception.如:1newWebDri...
分类:
其他好文 时间:
2014-06-19 00:42:32
阅读次数:
254
BACKGROUNDProcessor power consumption has become a major issue in recent years. The current trend of processor design to multi-core architecture as ea...
分类:
其他好文 时间:
2014-06-18 22:16:54
阅读次数:
435
Nightmare
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should ...
分类:
Web程序 时间:
2014-06-16 18:57:52
阅读次数:
268
本来是有用@Entity和@Table注解映射,之后发现,是因为@Table导入的包导错了。
分类:
移动开发 时间:
2014-06-16 18:34:19
阅读次数:
194
犹记得July大大在今年交大一次读书会上让大家10min写这个算法,然后讲解这个算法,我是通过百度网盘的视频看的,我10min没写出来,而且还是在输出exception case的几次提示下才AC掉的,而且关于需求分析还差了cplusplus的说明= =
今天写了这个函数,一开始想估计有千万种情况考虑,但是细细一想,其实也是可以枚举出来的,关键就是逻辑要能处理所有的case,
我已开始...
分类:
其他好文 时间:
2014-06-16 14:52:20
阅读次数:
274
Hadoop Pipes Exception: Illegal text protocol command对于Hadoop pipes 出现这样的错误,基本上编译代码依赖的.so和.a 版本不匹配网上也没有给出更多信息,我的同事最近回复了解决办法,可以参考https://groups.google....
分类:
其他好文 时间:
2014-06-15 14:37:31
阅读次数:
243
异常
什么是异常
Python用异常对象来表示异常情况。遇到错误后,会引发异常。如果异常对象并未被处理或捕捉,程序就会用所谓的回溯(Traceback,一种错误信息)终止执行:
>>> 1/0
Traceback (most recent call last):
File "", line 1, in
1/0
ZeroDivisionError: integer...
分类:
编程语言 时间:
2014-06-15 13:33:25
阅读次数:
251
Problem Description
In a factory, there are N workers to finish two types of tasks (A and B). Each type has N tasks. Each task of type A needs xi time to finish, and each task of type B needs yj ti...
分类:
其他好文 时间:
2014-06-15 11:26:42
阅读次数:
195