Commit afc13947 by BellCodeEditor

save project

parent c511a3e9
Showing with 7 additions and 7 deletions
def new_imput():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
while True:
money = input("请输入:")
if money== 'q':
break
else:
try:
unit = int(unit)
money = int(money)
except:
print("请重新输入一个数字")
else:
total.append(unit)
print("-"*30)
print(total)
new_imput()
#import turtle
return total
result = new_imput()
print(result)
#pen=turtle.Pen()# 报菜名
# 悟空和诺依到了一家特色餐馆,这家餐馆最大的特色就是有个自动报菜名机器人
......
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