diff --git a/pythonProject/第二章/while/2.py b/pythonProject/第二章/while/2.py index 593d450..2780be8 100644 --- a/pythonProject/第二章/while/2.py +++ b/pythonProject/第二章/while/2.py @@ -1,7 +1,8 @@ s=0 -i=0 #初始值 +i=1 #初始值 while i<=100: #条件 s+=i #语句块 i+=1 -else: - print(s) \ No newline at end of file +print(s) +print("-----") +print(i) \ No newline at end of file