我正在浏览一个教程,尽管我完全按照说明输入了这段代码,但返回时却出现语法错误。 谁能解释一下如何在 ruby 中创建一个段落?
我的尝试如下所示。
谢谢
Puts <<PARAGRAPH
There's something going on here.
With the PARAGRAPH thing.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
PARAGRAPH
最佳答案
您有看跌期权
。你想要 put
。
关于ruby - 如何在 Ruby 中创建段落?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8239261/