python中elif与else if有没有什么区别?
怪我咯
怪我咯 2017-04-17 16:43:09
0
7
1227

python中elif与else if有没有什么区别?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(7)
PHPzhong

There is no '''else if''' statement in Python. The equivalent is '''elif'''. The name is also the "abbreviation" of the former

阿神

Is there an else if

伊谢尔伦

There are if, elif, else

左手右手慢动作

There is no syntax like else if

in python
PHPzhong

elif in python is else if in other languages, just the name is different.

左手右手慢动作

There is no else if in python, only elif, which is equivalent to else if in other languages.

Peter_Zhu

No, python is to make the code more beautiful, so else if is abbreviated to elif

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template