Commit d127e3fe by BellCodeEditor

save project

parent feddaa1c
......@@ -20,4 +20,165 @@ def imk():
re = imk()
s=sdm(re)
print(s)
def sdm(a):
inm=0
for e in a:
inm = inm + e
return inm
def imk():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('您输入错误。')
else:
if unit== int('-1'):
break
else:
total.append(unit)
return total
re = imk()
s=sdm(re)
print(s)
def sdm(a):
inm=0
for e in a:
inm = inm + e
return inm
def imk():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('您输入错误。')
else:
if unit== int('-1'):
break
else:
total.append(unit)
return total
re = imk()
s=sdm(re)
print(s)
def sdm(a):
inm=0
for e in a:
inm = inm + e
return inm
def imk():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('您输入错误。')
else:
if unit== int('-1'):
break
else:
total.append(unit)
return total
re = imk()
s=sdm(re)
print(s)
def sdm(a):
inm=0
for e in a:
inm = inm + e
return inm
def imk():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('您输入错误。')
else:
if unit== int('-1'):
break
else:
total.append(unit)
return total
re = imk()
s=sdm(re)
print(s)
def sdm(a):
inm=0
for e in a:
inm = inm + e
return inm
def imk():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('您输入错误。')
else:
if unit== int('-1'):
break
else:
total.append(unit)
return total
re = imk()
s=sdm(re)
print(s)
def sdm(a):
inm=0
for e in a:
inm = inm + e
return inm
def imk():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('您输入错误。')
else:
if unit== int('-1'):
break
else:
total.append(unit)
return total
re = imk()
s=sdm(re)
print(s)
def sdm(a):
inm=0
for e in a:
inm = inm + e
return inm
def imk():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('您输入错误。')
else:
if unit== int('-1'):
break
else:
total.append(unit)
return total
re = imk()
s=sdm(re)
#print(s)
import func
list = func.imk()
add = func.sdm(list)
list = int(input('请输入分数:'))
print('这位选手的总分是:')
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