Commit 5b9e50ed by BellCodeEditor

auto save

parent 7eaed43a
Showing with 15 additions and 0 deletions
def new_input():
total=[]
while True:
price=input("请输入价格~")
try:
p=int(price)
except:
print("请输入一个整数")
else:
total.append(p)
if price=='q':
break
print(total)
print('-'*30)
new_input()
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