Commit 5c3825fc by BellCodeEditor

save project

parent a954242f
Showing with 17 additions and 21 deletions
def new_input(): def a():
total = [] a1=[]
while True: while True:
b=input("zbczbczbczbc:")
if b=="q":
break
try: try:
unit= int(input("请输入:")) b=int(b)
except: except:
if unit== 'q': print("额鹅鹅鹅")
break
else: else:
a1.append(b)
total.append(unit) return a1
print(total) a2=a()
return total def somthing(kctory):
sw=new_input() sum=0
for i in kctory:
def a(ab): sum=sum+i
sun=0 return sum
for i in ab: kctoryyet=somthing(a2)
sun=sun+i print(kctoryyet)
return sun
a=a(sw)
print(a)
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