Commit e5442091 by BellCodeEditor

save project

parent b5d2ea65
import func
data=func.sum_input()
score=func.sum(data)
input("这位选手的总分是:"+str(score))
\ No newline at end of file
...@@ -14,4 +14,14 @@ def new_input(): ...@@ -14,4 +14,14 @@ def new_input():
finally: finally:
print("-"*30) print("-"*30)
total.append(unit) total.append(unit)
print(total) print(total)
\ No newline at end of file return total
new_input()
def sum(money):
count=0
for i in range:
count=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