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"
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"