Commit 7282ba36 by BellCodeEditor

save project

parent d13fb1ba
Showing with 11 additions and 2 deletions
......@@ -12,6 +12,14 @@ def new_input():
else:
total.append(a)
return total
o=new_input()
print(o)
def sum(f):
count=o
for i in f:
count+=i
return count
price=new_input()
pay=sum(price)
print("一共"+str(pay)+"元")
\ 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