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("成绩虚假")

猜你喜欢

转载自www.cnblogs.com/boc1023/p/9665983.html
今日推荐