Commit 9cb6aa17 by BellCodeEditor

auto save

parent 1fcd14b4
Showing with 8 additions and 3 deletions
......@@ -10,7 +10,12 @@ def a():
print("请重新输入:")
else:
total.append(b)
#print(total)
return total
b=a()
print(b[1])
\ No newline at end of file
def sum(m):
c=0
for i in m:
c=c+i
print("您一共消费"+str(c)+"元。")
sum(b)
\ 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