Commit 0a1ec4f2 by BellCodeEditor

save project

parent 9680f014
Showing with 8 additions and 4 deletions
A=[]
while True: def new_input():
A=[]
while True:
a=input("请输入(q退出):") a=input("请输入(q退出):")
if a=="q": if a=="q":
break break
...@@ -10,4 +12,6 @@ while True: ...@@ -10,4 +12,6 @@ while True:
print("请输入整数") print("请输入整数")
else: else:
A.append(a) A.append(a)
print(A) return A
\ No newline at end of file b= new_input()
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