请教下为啥会运行失败?
# Enter a code
# coding:UTF-8
age = int(input("请输入年龄:"))
if age > 18:
print("咚咚的年龄:{}".format(age))
print("咚咚是成年人")
print("adult")
else:
print("咚咚是未成年")
# Enter a code
# coding:UTF-8
age = int(input("请输入年龄:"))
if age > 18:
print("咚咚的年龄:{}".format(age))
print("咚咚是成年人")
print("adult")
else:
print("咚咚是未成年")
2022-04-11
举报