Commit 073d6aaa by BellCodeEditor

save project

parent 1261a989
Showing with 15 additions and 9 deletions
total = [] def func():
while True: total = []
unit= input("请输入:") while True:
if unit== 'q': try:
break unit= input("请输入:")
else: except:
total.append(unit) print("请输入整数")
print(total) else:
\ No newline at end of file if unit==0:
break
else:
total.append(unit)
print(total)
func()
\ 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