python中elif与else if有没有什么区别?
走同样的路,发现不同的人生
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
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.
No, python is to make the code more beautiful, so else if is abbreviated to elif
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 pythonelif 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.
No, python is to make the code more beautiful, so else if is abbreviated to elif