python的if else

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

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

原文地址:https://www.cnblogs.com/yibeimingyue/p/13899302.html