Commit 8fbb5120 by BellCodeEditor

save project

parent fb550d9f
Showing with 6 additions and 9 deletions
total = [] def sum(a):
while True: b=0
unit= input("请输入:") for i in a:
if unit== 'q': b=b+i
break return b
else: \ No newline at end of file
total.append(unit)
print(total)
\ 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