Commit eb8eeb6a by BellCodeEditor

save project

parent 593b6f8c
import func
data=func.new_input()
score=func.sum(data)
print("总分数为:"+str(score))
\ No newline at end of file
...@@ -13,6 +13,13 @@ def new_input(): ...@@ -13,6 +13,13 @@ def new_input():
total.append(unit) total.append(unit)
finally: finally:
print("-"*30) print("-"*30)
print(total) return total
return unit
new_input()
\ No newline at end of file #new_input()
def sum(money):
count=0
for i in money:
count=count+int(i)
return count
#sum()
\ 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