Commit 3aac58b1 by BellCodeEditor

save project

parent 36fc793e
Showing with 14 additions and 5 deletions
total = []
while True:
def ABC():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
......@@ -10,5 +11,13 @@ while True:
print("错了")
else:
total.append(unit)
\ No newline at end of file
return total
b=ABC()
print(b)
def s(a):
count=0
for i in a:
count = count + i
return count
c=s(b)
print(c)
\ 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