Commit f31eac19 by BellCodeEditor

save project

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