5.流程控制-if条件判断

1.流程判断,if else

 

score =int(raw_input("please a num: ")) # raw_input 是接受字符串,所以要强制转为数值的整形
if score >=90:
print"A,very good"
elif score >=80:
print"B,good"
elif score >=70:
print"C,pass"
else:
print"End"

 

posted @ 2017-12-25 19:03  爱奔跑的大卫  阅读(126)  评论(0编辑  收藏  举报