Commit e2e8b676 by BellCodeEditor

save project

parent 05e7d622
x = 0
def diancai():
l = 1
total = []
while True:
unit= input("请依次输入五位评委的分数")
if l == 5:
break
else:
try:
total.append(int(unit))
except:
print('请输入数字哦')
else:
print('添加成功')
l = l + 1
return total
def sum():
o = 0
for i in x:
o = o + i
return o
x = diancai()
w = sum()
sum()
print('你的分数为' + str(w/5) + '分')
import func
func.diancai()
func.sum()
\ 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