python的if else

 

c=4
if c>5:
    print('hello')
elif c<5:
    print('hei')
else:
    print('ha')

if else3个判断,只要满足1个,其它的就不去判断了。

posted on 2020-10-29 21:19  一杯明月  阅读(130)  评论(0编辑  收藏  举报