Commit 68f14b99 by BellCodeEditor

save project

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