Commit 05732d35 by BellCodeEditor

save project

parent 030b9a2b
Showing with 8 additions and 4 deletions
import func
func.all(swim)
\ No newline at end of file
swim=func.a()
score=func.all(swim)
print("这位选手的总分为"+str(score))
\ No newline at end of file
......@@ -14,10 +14,11 @@ def a():
finally:
print("-"*30)
return total
prize=a()
#prize=a()
def all(gold):
result=0
for data in gold:
result=result+data
print(result)
return result
#print(result)
#all(prize)
\ 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