---恢复内容开始---
#输出1-10,7除外
count = 0 while count<10: count = count + 1 if count == 7: pass else: print(count)
输出1-100的和
count = 1 n = 0 while count<101: n = count + n count = count + 1 print(n)
输出1-100的奇数
while count<101: temp=count%2 if temp==1: print(count) count=count+1
输出1-100的偶数
while count<101: temp=count%2 if count!=1: print(count) count=count+1
求1-2+3...+99的值
n=1 s=0 while n<100: temp=n%2 if temp==0: s=s-n else: s=s+n n=n+1 print(s)
---恢复内容结束---