Commit c6a18621 by BellCodeEditor

save project

parent b8608690
Showing with 4 additions and 10 deletions
...@@ -5,14 +5,8 @@ def new_input(): ...@@ -5,14 +5,8 @@ def new_input():
if unit== 'q': if unit== 'q':
break break
else: else:
try:
unit=int(unit)
except:
print("请输入一个整数!!!")
else:
total.append(unit) total.append(unit)
print(total) print(total)
return new_input() return total
abc.return() abc=new_input()
print(abc) print(abc)
\ No newline at end of file
\ 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