标签:while int pre print color nbsp style class 循环
s1 = 0 s = 1 while s < 101: s1 = s + s1 s = s + 1 print(s1)
1赋值S1为总和 (同时时0)
2赋值S为1
3循环小于101的数
4总和等于所以循环后的S+0
5循环S+1
6最后打印
标签:while int pre print color nbsp style class 循环
原文地址:https://www.cnblogs.com/liycyt/p/12539041.html