首页 > TAG信息列表 > 0while

测试截图性能

i=0while [ $i -le 500 ]do        let i=$i+1        tsb --input file:///data/share/zan_15.ts --output udp://192.168.1.225:900${i} --loop > /dev/null 2>&1 &donei=0while [ $i -le 500 ]do        let i=$i+1        cl_cmd snapshot_input

流程控制之while(2)

1. 使用while循环输出1 2 3 4 5 6 8 10count = 0while count < 10: count += 1 if count == 7 or count == 9: continue print(count)2.求1-100的所有数的和 num = 0count = 1while count <= 100: num = num+ count #num+=count count += 1print(num) 3

1

------------恢复内容开始------------ ------------恢复内容开始------------ e=0while True: e=e+1 if e>100: break else: if e%3==0: print(e) else: continue ------------恢复内容结束------------ e=0while True:

python while语句

#循环五次num = 1while num <= 5: print(num) num += 1#计算1+2+3+……+100sum = 0num = 1while num <= 100: sum += num #1+……+99 + 100 num += 1print("sum = %d" % (sum))'''0 + 11 + 23 + 36 + 4'''#while无限循环num =