Commit d5b97ea5 by BellCodeEditor

save project

parent 17337c8f
Showing with 16 additions and 2 deletions
try:
age= int(input("及访问u分为非非法违"))
except:
print("输入整数")
else:
if age < 18:
print('喝尼玛')
print('GG')
\ No newline at end of file
...@@ -5,7 +5,12 @@ def new_input(): ...@@ -5,7 +5,12 @@ def new_input():
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
unit1 = int(unit)
except:
print("数字")
else:
total.append(unit1)
print(total) print(total)
new_input() 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