Commit bc489b69 by BellCodeEditor

save project

parent 01cd8655
Showing with 7 additions and 4 deletions
total = [] def a_in():
while True: total = []
while True:
unit= input("请输入:") unit= input("请输入:")
if unit== 'q': if unit== 'q':
break break
...@@ -10,5 +11,7 @@ while True: ...@@ -10,5 +11,7 @@ while True:
print("请重新输入一个数字") print("请重新输入一个数字")
else: else:
total.append(unit) total.append(unit)
finally:
print("-"*30) print("-"*30)
print(total) r=a_in()
\ No newline at end of file print(f)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment