Commit 5ad1d8f3 by BellCodeEditor

save project

parent c67971f6
Showing with 9 additions and 6 deletions
total = []
while True:
unit= int(input("请输入:"))
def asd():
total = []
while True:
unit=input("请输入:")
if unit=='q':
break
else:
......@@ -10,9 +10,12 @@ while True:
except:
print("输入整数")
else:
total.append(unit)
total.append(unit_)
print('-'*30)
print(total)
print(total)
return total
a=asd()
print(a)
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