想用switch语句做一个简单的数值区间判断,求问大神哪里导致结果出错了
num=input('Enter the piont:')
switch (num)
case {90:1:100}
disp ('the mark is 优')
case {80:1:89}
disp ('the mark is 良')
case {70:1:79}
disp ('the mark is 中')
case {60:1:69}
disp ('the mark is 及格')
case {0:1:59}
disp ('the mark is 不及格')
otherwise
disp('a wrong piont')
end
输出结果:Enter the piont:95
num =
95
a wrong piont