# while 循环s = 0i = 1while i < 10: s = s + i i = i + 1print(s)执行结果:
python进阶之while循环
原文:https://www.cnblogs.com/zx1313/p/14727733.html