python-if判断

if

score = 81
if score >= 90:
    print('A')
elif score >= 80:
    print('B')
elif score >= 70:
    print('C')
elif score >= 60:
    print('D')
else:
    print('不及格,请继续努力')

你可能感兴趣的:(python,python,自动化测试)