Commit d7bad42e by BellCodeEditor

save project

parent 05e7d622
import zhuyicheng1
zhuyicheng3=zhuyicheng1.zhuyicheng2()
zhuyicheng1.zhuyicheng(zhuyicheng_ , zhuyicheng1.zhuyicheng1( zhuyicheng3 ))
zhuyicheng_="你的游泳成绩是"
def zhuyicheng(a,b):
print(a,b)
def zhuyicheng2():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print("输错了,再来")
else:
total.append(unit)
return total
def zhuyicheng1(a):
sum=0
for i in a:
sum+=i
return sum
#print(qiuhe(new_input()))
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