Commit 35a14601 by BellCodeEditor

auto save

parent 6a7babd2
import turtle
# 调用自定义的输入函数,实现分数输入的功能
data = total.list()
# 调用自定义的求和函数,计算需要支付的总价
score = total.t
print("这位选手的总分数为:"+str(score))
\ No newline at end of file
def total(list):
t=0
for i in list:
t=t+i
print(t)
return(t)
w=total(list=[1,2])
print(w)
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