Commit 6412acc8 by BellCodeEditor

save project

parent c4737eb9
Showing with 8 additions and 0 deletions
......@@ -12,5 +12,12 @@ def new_input():
else:
total.append(unit)
return total
def jinsuan(money):
sum = 0
for i in money:
sum += i
return sum
result = new_input()
a = jinsuan(result)
print(result)
print('来来,结账一共:',a)
\ 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