总是忘记, 备份一下,方便下次用.第一种:File directory = new
File("");//参数为空String courseFile = directory.getCanonicalPath()
;System.out.println(courseFile);结果:C:\Docume...
分类:
编程语言 时间:
2014-05-08 12:43:50
阅读次数:
343
亲戚Time Limit:1000MSMemory
Limit:65535KBSubmissions:214Accepted:82Description若某个家族人员过于庞大,要判断两个是否是亲戚,确实还很不容易,现在给出某个亲戚关系图,求任意给出的两个人是否具有亲戚关系。
规定:x和y是亲戚,y和...
分类:
其他好文 时间:
2014-05-08 11:21:14
阅读次数:
307
汉字统计Time Limit: 2000/1000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s):
22508Accepted Submission(s): 12255Problem Desc...
分类:
其他好文 时间:
2014-05-08 10:04:00
阅读次数:
306
K-th NumberTime Limit:20000MSMemory
Limit:65536KTotal Submissions:35653Accepted:11382Case Time
Limit:2000MSDescriptionYou are working for Macrohard co...
分类:
其他好文 时间:
2014-05-08 05:24:50
阅读次数:
387
题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=2841
Visible Trees
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1337 Accepted S...
分类:
其他好文 时间:
2014-05-08 04:45:47
阅读次数:
375
当我们修改了frameworks后可能出现:
make: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp] 错误 38
解决办法:make update-api
在Android中添加物理按键:KEYCODE_HELP
1、Android 增加按键:
ScanCode -> KeyCodeLabel ...
分类:
移动开发 时间:
2014-05-08 04:43:52
阅读次数:
468
Help Me Escape
Time Limit: 2 Seconds Memory Limit: 32768 KB
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto the...
分类:
其他好文 时间:
2014-05-08 01:37:02
阅读次数:
353
1.创建新的字符串 1 public class T004 { 2 public static
void main(String[] args){ 3 System.out.println(replaceBlank("we are happy")); 4
} 5 ...
分类:
编程语言 时间:
2014-05-08 01:08:18
阅读次数:
364
确定比赛名次
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 10358 Accepted Submission(s): 4046
Problem Description
有N个比赛队(1
...
分类:
其他好文 时间:
2014-05-07 22:58:01
阅读次数:
323
defgetResult(cmd,timeout=2):#命令超时时间
deadline=time.time()+timeout
r=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE)
whiletime.time()<deadlineandr.poll()isNone:
time.sleep(0.1)
ifr.poll()isNone:#检查子进程
r.kill()
r.wait()
return‘‘
r.wait()
..
分类:
编程语言 时间:
2014-05-07 22:30:17
阅读次数:
504