一、复习:循环。反复执行某段语句一种语法形式。1.基本语法:for( 初始条件 ; 循环条件 ; 状态的改变 ){ 循环体}循环的四要素。循环的执行过程。初始条件--循环条件--循环体--状态改变--循环条件--。。。。。案例:1.打印10您好。2.显示1-100的数(所有的数,奇数,偶数)。3.显...
分类:
其他好文 时间:
2014-12-27 00:08:35
阅读次数:
135
二、新课:1.break与continue.这两个关键字一般放在循环的花括号里面使用。break——结束整个循环。continue——结束本次循环,进入下次循环。break的案例: int i = 1; for(;;) { if(i>100) { ...
分类:
编程语言 时间:
2014-12-26 21:37:15
阅读次数:
205
一、跳出循环的俩个关键字1.break与continue. 这两个关键字一般放在循环的花括号里面使用。break——结束整个循环。continue——结束本次循环,进入下次循环。break的案例: int i = 1; for(;;) { if(i>100) ...
分类:
编程语言 时间:
2014-12-26 21:37:12
阅读次数:
171
If we run a Gradle build and one of the tasks fails, the whole build stops immediately. So we have fast feedback of our build status. If we don't want...
分类:
其他好文 时间:
2014-12-26 21:31:21
阅读次数:
262
AIX-vi操作-提示Unknown terminal type的问题解决方法AIX Version 5.3$ vi /etc/profilelinux: Unknown terminal type[Hit return to continue] :q!I don't know what kind ...
分类:
其他好文 时间:
2014-12-26 12:52:57
阅读次数:
984
还是老样子,本来想自己写的,但是发现这个哥们写的相当详细,直接搬过来即可
安装环境:OS X操作系统,Python 2.7.3。
MySQLdb其实包含在MySQL-python包中,因此无论下载还是在pip中search,都应该是搜寻MySQL-python。
以下将说明MySQLdb两种常见的安装方式,下载安装或者pip安装MySQL-python。
下...
分类:
其他好文 时间:
2014-12-24 14:45:27
阅读次数:
199
1、expr计算整数变量值
s=`expr 2 + 3`
运算符号和参数之间要有空格分开;
2、let命令
let
s=(2+3)*4
echo
$s
3、for语句
for 变量 in 列表
do
命令行(通常用到循环变量)
done
#!/bin/bash
for var in one two three four five
do
...
分类:
系统相关 时间:
2014-12-17 21:03:44
阅读次数:
221
语句语句分为四个大类: * 分支语句:if,if... else,if ...else if... else,switch case * 循环语句:for,while,do while,foreach * 跳转语句:break,continue ...
HTTP 状态码含义1XX** 100 Continue:告知客户端可以继续进行操作* 101 Switching Protocols:客户端需要进行通信协议切换时,服务端同意后的响应,与Upgrade报头联合使用2XX*** 200 Ok:服务端正确响应了请求,并且没有与其它2XX的状态...
分类:
Web程序 时间:
2014-12-17 16:04:52
阅读次数:
177
Command class: aliases
ni -- Step one instruction
rc -- Continue program being debugged but run it in reverse
rni -- Step backward one instruction
rsi -- Step backward exactly one instruction
...
分类:
数据库 时间:
2014-12-17 12:57:13
阅读次数:
302