标签归档:goto

Python中是否有标签/定位器?

问题:Python中是否有标签/定位器?

gotoPython中是否有一个或任何等效版本能够跳转到特定的代码行?

Is there a goto or any equivalent in Python to be able to jump to a specific line of code?


回答 0

不,如果您要这么做,Python不支持标签和goto。这是(高度)结构化的编程语言。

No, Python does not support labels and goto, if that is what you’re after. It’s a (highly) structured programming language.