原来把顺序反过来是走不通的啊。。。
score = 85
if score >=60:
print 'passed'
elif score >=80:
print 'good'
elif score >=90:
print 'excellent'
else:
print 'failed'
#结果:passed
score = 85
if score >=60:
print 'passed'
elif score >=80:
print 'good'
elif score >=90:
print 'excellent'
else:
print 'failed'
#结果:passed
2018-11-22
举报