Commit 107ea6d7 by BellCodeEditor

auto save

parent ebb6a60e
Showing with 4 additions and 5 deletions
def new_input(): def new_input():
tatol=[] tatol=[]
while True: while True:
unif=input("请输入:") unif=int(input("请输入:"))
if unif=="q": if unif=="q":
break break
try: try:
...@@ -10,7 +10,7 @@ def new_input(): ...@@ -10,7 +10,7 @@ def new_input():
print("请再输入一个数") print("请再输入一个数")
else: else:
tatol.append(unif) tatol.append(unif)
print(tatol) print(tatol)
return tatol return tatol
result=new_input() result=new_input()
\ 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