1 #Filename:game1.py 2 3 guess=10 4 running=True 5 while running: 6 try: 7 answer=int(raw_input('Guess what i think:')) 8 ...
分类:
编程语言 时间:
2014-08-08 15:59:16
阅读次数:
215
正常运行以下命令sudo docker run --rm busybox echo helloworld/var/log/upstart/docker.log 日志如下:2014/08/07 00:12:02 POST /v1.13/containers/create[339dd1d9] +job ...
分类:
其他好文 时间:
2014-08-07 15:40:20
阅读次数:
333
进程状态:1)进程的状态的概述:1.1)Running(R),运行或将要运行1.2)Interruptible(S),被阻断而等待一个事件,可能会被一个信号激活1.3)Uninterruptible(D),被阻断而等待一个事件,不会被信号激活1.4)Stopped(T),由于任务的控制或者外部的追踪...
分类:
系统相关 时间:
2014-08-07 12:21:50
阅读次数:
331
apache:
??pkg:
????-?installed
??service:
????-?running
????-?watch:
??????-?pkg:?apache
??????-?file:?/etc/httpd/conf/httpd.conf
??????-?user:?apache
??...
分类:
其他好文 时间:
2014-08-06 19:34:42
阅读次数:
285
1. 发送信号 * In Unix, use "kill -3 <pid>" where pid is the Process ID of the JVM.(kill 信号列表) * In Windows, press CTRL+BREAK on the window where the JVM is running. 2. jstack -l pid.? http:/...
分类:
编程语言 时间:
2014-08-05 19:40:00
阅读次数:
300
From:http://www.cnblogs.com/killerlegend/p/3892668.htmlAuthor:KillerLegendDate:2014.8.5在看A*算法的时候,有一个关于8迷宫问题的Java Applet的样式,在这个网站: http://www.permadi.c...
分类:
移动开发 时间:
2014-08-05 18:42:49
阅读次数:
272
Taxi Cab Scheme
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 712 Accepted Submission(s): 337
Problem Description
Running a taxi stati...
分类:
其他好文 时间:
2014-08-04 21:30:08
阅读次数:
272
本文记录如何利用cc2530的timer1产生pwm输出。在此之前,先看看timer1的一些特性。 先看timer1的操作模式,分别是Free-Running, Modulo, Up-and-Down。 具体的讲,Free-Running就是在每个时钟沿到来是计数器加1,从0x0000一直加...
分类:
其他好文 时间:
2014-08-04 14:05:17
阅读次数:
509
交换机密码破解:1、进入特权模式设置一个enable 密码 Switch(config)#enable password 123 2、保存 Switch#copy running-config st...
分类:
其他好文 时间:
2014-08-04 13:40:17
阅读次数:
215
1,不同的Activity之间的跳转可以使用Intent完成,用户也可以通过onActivityResult()方法来接收Activity返回的结果。
2,在Android操作系统中,提供了多个可以操作的Intent,用户只需要设置好要跳转的Action以及附加的若干数据即可实现这些程序的调用。
3,Activity的生命周期包括运行态(Running State),暂停态(P...
分类:
移动开发 时间:
2014-08-02 15:33:23
阅读次数:
296