Commit afc13947 by BellCodeEditor

save project

parent c511a3e9
Showing with 7 additions and 7 deletions
def new_imput(): def new_imput():
total = [] total = []
while True: while True:
unit= input("请输入:") money = input("请输入:")
if unit== 'q': if money== 'q':
break break
else: else:
try: try:
unit = int(unit) money = int(money)
except: except:
print("请重新输入一个数字") print("请重新输入一个数字")
else: else:
total.append(unit) total.append(unit)
print("-"*30) print("-"*30)
print(total) return total
new_imput() result = new_imput()
#import turtle print(result)
#pen=turtle.Pen()# 报菜名 #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