Commit 29623c27 by BellCodeEditor

save project

parent 5394235a
Showing with 6 additions and 5 deletions
......@@ -3,9 +3,11 @@ def new_input():
while True:
unit= input("请输入:")
if unit== 'q':
break
try:
int(unit)
except:
print('要输入整数哦')
else:
aaa.append(unit)
print(aaa)
new_input()
\ No newline at end of file
print(aaa)
new_input()
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