Commit 60d4ca46 by BellCodeEditor

save project

parent 226cff9c
Showing with 19 additions and 3 deletions
......@@ -5,6 +5,22 @@ def sb():
if unit== 'q':
break
else:
total.append(unit)
try:
unit=int(unit)
except:
print("输入一个数字")
else:
total.append(unit)
print("-"*25)
print(total)
sb()
\ No newline at end of file
sb()
# try:
# age=int(input("?"))
# except:
# print("整数")
# else:
# if age<18:
# print("NO")
# print("结束")
\ 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