编辑代码
Python代码
3.11.0
2.7.17
运行
n=
int
(input(
"请输入您的年龄:"
))
# 添加了缺少的右括号
if
n <
18
:
print
(
"你是未成年人"
)
else
:
print
(
"你是成年人"
)