Commit 53a3dadd by BellCodeEditor

save project

parent 05e7d622
def new_input():
list1 = []
i = 5
while i > 0:
count = input("请输入分数")
list1.append(float(count))
i -= 1
return list1
def sum(lista):
dsb = 0
for i in lista:
dsb += i
return dsb
import func
a = func.new_input()
som = func.sum(a)
print(som)
\ 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