学习红宝石。使用 Lynda.com。 data_set 未显示在终端上
我知道标题非常模糊,我很抱歉。我正在使用 Lynda.com 来学习 Ruby,并在 Ubuntu 11.10 上使用 1.9.2。
反正。在学习本教程时,我购买了示例文件以供参考。
在本教程的数组部分之后,它告诉我输入内容,我期望他得到相同的答案。然而……
我不这么认为。
如果你看一下屏幕截图,它们并不相同。视频在左侧,终端在右上角,示例文件在右下角。我没有得到预期的结果。我已经检查了终端设置,但没有看到任何遗漏的内容。请指教。
另外,我无法发布图片,因为我的帖子数量低于 10 个。请复制并粘贴链接。
I understand that the title was very vague and my apologies. I am using Lynda.com to learn Ruby and am using 1.9.2 on Ubuntu 11.10.
Anyway. While following this tutorial I have purchased the example files for reference.
Following the Arrays section of this tutorial it tells me to type in stuff, and I'm to expect the same answer he gets. However.....
I don't.
If you look at the screenshot they are not the same. Video is on the left, terminal is on the top right, the example file is on the bottom right. I am not getting the expected results. I have checked in the terminal settings and I don't see anything that I'm missing. Please advise.
Also, I cannot post images because I am below 10 posts. Please copy and paste the link.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
但是您将其错误地输入为
data_set['a","b","c"]
这就是它混乱的原因。请注意,您已附上a
在错误的引号中。请参阅我的图像(ruby 1.9.2,Win 7)but you have mistyped it as
data_set['a","b","c"]
thats why its messing up. Notice that you have encloseda
in wrong set of quotes. See my image (ruby 1.9.2, Win 7)