Commit e736e9b0 by BellCodeEditor

auto save

parent 05e7d622
import func
def new_input():
total = []
_541881452=5
while _541881452>0:
SB=input("请输入分数:")
try:
unit= float(SB)
except:
if SB=="q":
break
else:
print("SB,输整数或小数!")
_541881452+=1
else:
total.append(unit)
_541881452-=1
return total
def sun(_54188):
_1452=0
for i in _54188:
_1452 += i
return _1452
gkj=new_input()
kly3=sum(gkj)
print(kly3)
\ 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