通过ping命令,测试192.168.1.100到192.168.1.120之间的所有主机是否在线,如果在线,就显示“ipisup.”其中IP要换为真正的IP地址,并且以绿色显示;如果不在线,就显示“ipisdown.”其中IP要换为真正的IP地址,并且以红色显示。要求,分别使用while,until和for(两种)实现。1..
分类:
其他好文 时间:
2015-09-17 17:42:16
阅读次数:
188
循环语句总结本文详细介绍流程控制语句之循环语句,依次如下:1,for循环语句一般使用与特殊使用2,while循环语句一般使用与特俗使用的3,until语句使用4,循环控制:continue,break在循环语句中的使用5,函数的使用1,for循环语句for循环一般格式为:列表依次匹配变量,do后..
分类:
其他好文 时间:
2015-09-17 15:26:14
阅读次数:
262
usleep() 函数延迟代码执行若干微秒。unpack() 函数从二进制字符串对数据进行解包。uniqid() 函数基于以微秒计的当前时间,生成一个唯一的 ID。time_sleep_until() 函数延迟代码执行直到指定的时间。time_nanosleep() 函数延迟代码执行若干秒和纳秒。s...
分类:
Web程序 时间:
2015-09-16 17:18:09
阅读次数:
251
Sub util实例()Dim rs%rs = 2Do Until Cells(rs, 2) = ""If Cells(rs, 2) >= 90 Then Cells(rs, 3) = "good"rs = rs + 1LoopEnd Sub
分类:
其他好文 时间:
2015-09-15 16:13:46
阅读次数:
138
bash基本的逻辑判断for:遍历说有列表的元素while:只要判断体为真就一直循环until:只要判断体为假就一直循环if:条件判断语句在详述这四个命令前,先看下一些基本知识bash的算数运算[root@centos~]#a=5
[root@centos~]#b=7
[root@centos~]#echo$a+$b
5+7上面例子说明a,b是字符不会..
分类:
其他好文 时间:
2015-09-15 14:58:46
阅读次数:
187
题目:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like...
分类:
其他好文 时间:
2015-09-14 16:44:58
阅读次数:
155
document:CountDownLatch: A synchronization aid that allows one or more threads to wait until a set of operations being performed in ot...
分类:
其他好文 时间:
2015-09-14 13:54:31
阅读次数:
216
ORA-00257: archiver error. Connect internal only, until freed原因是日志满了,根据上述网址提供的步骤操作后就可以,即删除部分归档日志。1.首先查看当前flash recovery area使用情况C:\windows\system32>sq...
分类:
其他好文 时间:
2015-09-13 22:59:20
阅读次数:
181
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ...
分类:
其他好文 时间:
2015-09-13 00:47:31
阅读次数:
171
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ...
分类:
其他好文 时间:
2015-09-11 12:10:30
阅读次数:
111