Commit 9d663b99 by BellCodeEditor

save project

parent f99ebf86
Showing with 8 additions and 4 deletions
a = []
while True:
def num():
a = []
while True:
try:
n=input("请输入")
if n=="q":
......@@ -10,4 +12,6 @@ while True:
print("程序结束")
else:
a.append(n)
print(a)
\ No newline at end of file
return a
b = num()
print(b)
\ 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