Commit 5c3825fc by BellCodeEditor

save project

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