Commit 1393faf7 by BellCodeEditor

save project

parent 8017a13c
import func
data = func.new_input()
score = func.sum(data)
print("总分数为:"+str(score))
\ No newline at end of file
......@@ -14,3 +14,9 @@ def new_input():
print("-"*30)
print(total)
new_input()
def sum(unit):
count = 0
for i in unit:
count += i
return count
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