通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
用键盘输入数字 5,以下代码的输出结果是( )。
n = eval(input("请输入一个整数:")) s = 0 if n >=5: n -= 1 s = 4 if n <5: n -= 1 s = 3 print(s)