Commit 6819fd88 by BellCodeEditor

save project

parent 08da6fea
Showing with 28 additions and 2 deletions
def s():
totla
\ No newline at end of file
total=[]
while True:
unit = input("请输入")
if unit=="q":
break
else:
try:
unit=int(unit)
except:
print("输入数字")
finally:
print("53u8tumejfh8n ")
return total
def sum(money):
count=0
for i in money:
count=count+i
return count
price=s
pay=sum(price)
print("你用"+str(pay)"元")
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