我无法弄清楚这两行代码中有什么问题,它们的颜色不同。

huangapple go评论56阅读模式
英文:

I can't figure out what's wrong with the two lines of code that are different colors

问题

我不知道这段代码有什么问题,也不知道为什么它的颜色和其他文字不一样。在它被修复之前,我无法运行任何东西。

我已经尝试过重新输入它,调整了缩进,问过我的老师,但什么都没用。

英文:

I have no idea what's wrong with this code and why it's not the same color as all the other text. I can't run anything until it's fixed.

我无法弄清楚这两行代码中有什么问题,它们的颜色不同。

I have tried retyping it, adjusted the indenting, asking my teacher, nothing is working.

答案1

得分: 3

end of line 28 you have a " instead of a ". So yaml thinks line 29 is a continuation of the string on line 28. Replace the " with " on line 28

英文:

end of line 28 you have a instead of a ". So yaml thinks line 29 is a continuation of the string on line 28. Replace the with " on line 28

huangapple
  • 本文由 发表于 2023年6月19日 10:24:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/76503275.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定