Commit 0b058ef2 by BellCodeEditor

save project

parent 6d88eca4
Showing with 18 additions and 0 deletions
def menu():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print("你输入有误,请输入数字")
else:
if unit== 'q':
break
else:
return totel
t=menu()
print(t)
total.append(unit)
print(total)
menu()
\ 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