Commit 9d663b99 by BellCodeEditor

save project

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