Commit 8950d575 by BellCodeEditor

save project

parent 8a3580f5
Showing with 10 additions and 3 deletions
...@@ -12,5 +12,13 @@ def new_input(): ...@@ -12,5 +12,13 @@ def new_input():
print("!") print("!")
else: else:
total.append(unit) total.append(unit)
print(total) return total
new_input() def ee(x):
\ No newline at end of file count=0
for i in x:
count += i
return count
result=new_input()
pay=ee(result)
print("要付",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