Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

官网代码错误:“数到串未定义” #15

Open
hotmanga opened this issue Feb 21, 2022 · 1 comment
Open

官网代码错误:“数到串未定义” #15

hotmanga opened this issue Feb 21, 2022 · 1 comment

Comments

@hotmanga
Copy link

hotmanga commented Feb 21, 2022

「打断」陈述和下面的“继续”陈述里有这样两段代码

// 打断代码
变量 日志 ="好""好""好""错误""好""好"对于变量 i = 0i  日志长度();i++)「
    如果日志i "错误")「
        系统打印行"错误在:" + 数到串i+ "行"打断
    」
」

// 继续代码
变量 列表 =482965486167205738204518397对于变量 i = 0i  列表长度();i++)「
    如果列表i】% 2  0继续
    系统打印数到串列表i】)+ " ")
」
系统打印行""

这两段的无法运行,打印语句都使用了方法“数到串()”,但是该方法并没有引入或定义,直接运行代码就报错了。得到错误提示如下

未定义的变量「数到串」。
@hotmanga
Copy link
Author

我看明白了 ,其实是调用“数字”下面的“数到串”方法吧?
原官网教程代码应该从“数到串(列表【i】)”改成"数字。数到串(列表【i】)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant