Commit 3fa7ff42 by BellCodeEditor

save project

parent 4d68e5df
Showing with 2 additions and 17 deletions
while True
def lbwnb():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
unit=int(unit)
print(total)
lbwnb()
\ No newline at end of file
...@@ -11,8 +11,5 @@ def lbwnb(): ...@@ -11,8 +11,5 @@ def lbwnb():
print("nm") print("nm")
else: else:
total.append(unit) total.append(unit)
return(total)
print(total) print(total)
lbwnb()
result= lbwnb() \ No newline at end of file
print(result)
\ 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