Commit 7655514d by BellCodeEditor

save project

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