Python中是否有标签/定位器? [英] Is there a label/goto in Python?

查看:100
本文介绍了Python中是否有标签/定位器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Python中是否有goto或任何等效项能够跳转到特定的代码行?

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

推荐答案

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

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

这篇关于Python中是否有标签/定位器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆