Commit 8ddc9ab6 by BellCodeEditor

save project

parent e0074ae1
Showing with 8 additions and 4 deletions
......@@ -11,7 +11,11 @@ def new_input():
print("请重新输入一个数值")
else:
toial.append(c)
return toial
a=new_input()
print(a)
\ No newline at end of file
def sum(money):
count=0
for i in money:
count = count+i
return count
m=sum(price)
print("您一共需要支付'+sty(m)'元")
\ 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