Commit 7655514d by BellCodeEditor

save project

parent fb46c331
Showing with 9 additions and 4 deletions
def fast_food():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
try:
unit=input("请输入:")
s = int(unit)
except:
if unit== 'q':
break
else:
print("请输入数字!")
else:
total.append(unit)
total.append(s)
print(total)
fast_food()
......
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