找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 1334|回复: 0

[求助] python如何使用跳转到某一行代码呢?goto怎样使用?

1

主题

1

帖子

1

积分

贫民

积分
1
terwenlee 发表于 2022-10-3 10:45:45 | 显示全部楼层 |阅读模式
from goto import with_goto@with_gotodef range(start, stop):    i = start    result = []    label .begin    if i == stop:        goto .end    result.append(i)    i += 1    goto .begin    label .end    return result运行错误:F:\pythontest2\venv\Scripts\python.exe F:\pythontest2\test02.py Traceback (most recent call last):  File "F:\pythontest2\test02.py", line 3, in <module>    from goto import with_gotoModuleNotFoundError: No module named 'goto'
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表