我已经按照指令的方式键入了第6行,但仍然在执行时收到错误.
它说:
Syntax error,unexpected tCONSTANT,expecting $end
puts " Here ^ are the days : ",days
paul@paulbookpro ~ ⸩ ruby days = "abc puts "Here are the days" -:2: Syntax error,expecting $end puts "Here are the days" ^
它将单词“Here”之前的双引号视为上一行字符串的闭包引号,然后想知道为什么要使用一个名为Here(以大写字母开头的令牌)的常量.