Commit 05732d35 by BellCodeEditor

save project

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