Commit 18177e01 by BellCodeEditor

save project

parent f92db1e1
Showing with 10 additions and 2 deletions
...@@ -14,5 +14,12 @@ def new_input(): ...@@ -14,5 +14,12 @@ def new_input():
finally: finally:
print("_"*30) print("_"*30)
return total return total
result = new_input()
print(result) def sum(unit):
count=0
for i in unit:
count = 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