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

posted @ 2022-02-20 16:13  ayanyuki  阅读(39)  评论(0)    收藏  举报