2018.09.18多分支

if 条件:

  不啦不啦...

elif:

  不啦不啦..

elif:

  不啦不啦..

elif:

  不啦不啦..

else:

  你赢了!

 

例:

score = int( input("score:") )

if score > 100:
    print("虚假成绩")
elif score > 89:
    print("A")
elif score > 79:
    print("B")
elif score > 59:
    print("C")
elif score > 39:
    print("D")
elif score >= 0:
    print("E")
else:
    print("成绩虚假")

 

posted @ 2018-09-18 01:48  Jelly的铲屎官  阅读(83)  评论(0编辑  收藏  举报