Commit f8bbea8f by BellCodeEditor

save project

parent c0046edb
Showing with 16 additions and 0 deletions
def new_input():
def new_input():
total=[]
while True:
price=input("输入")
if price=='p':
break
try
price=int(price)
except:
print("错误")
else:
total.append(price)
result=new_input()
print(resule)
\ No newline at end of file
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