Commit 75d7b8e4 by BellCodeEditor

save project

parent 46c74c8f
Showing with 9 additions and 4 deletions
def a():
def s():
total = []
while True:
unit= input('请输入:(q退出):')
......@@ -8,5 +8,10 @@ def a():
total.append(unit)
print(total)
return total
s=a()
print(a)
\ No newline at end of file
del a(s)
k=0
for i in s:
k=k+i
return k
f=k()
print(f)
\ 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