Commit b7ab2364 by BellCodeEditor

save project

parent 5921fed5
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