英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论