Commit 9cb6aa17 by BellCodeEditor

auto save

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