python循环总结
1.python中循环分为while循环和for循环。2.while循环格式while 条件:语句1语句n案例:求1-100的累加和i=1s=0while i<=100:s+=ii+=1print("1-100的累加和为%d"%s)案例:求1-100的偶数累加和方法1:i=1s=0while i<=100:if i%2==0:s+=ii+=1print("1-100的偶...