if

if
age = 18
is_beautiful = True
star = "水瓶"
if 16 < age < 20 and is_beautiful and star == "水瓶":
    print("okk")
else:
    print("not ok")

score = 95
if score < 60:
    print("不及格")
elif score < 85:
    print("良好")
elif score < 95:
    print("优秀")
else:
    print("4.3!")

上一篇:LDA


下一篇:python里的输入与输出