Commit f31eac19 by BellCodeEditor

save project

parent cdc7ccde
Showing with 6 additions and 2 deletions
def price():
total=[]
while True:
unit=int(input())
unit=(input())
if unit=="q":
break
else:
total.append(unit)
print(total)
return price()
try:
price()
a=price()
except:
print("数据类型错误")
else:
print(a)
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