Commit 2261141e by BellCodeEditor

save project

parent f25c275a
Showing with 6 additions and 1 deletions
......@@ -5,6 +5,10 @@ def func():
if unit== 'q':
break
else:
total.append(unit)
try:
total.append(int(unit))
except:
print('要输入整数哦')
continue
print(total)
func()
\ 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