StackOverflow 文件 Ruby Language 教程 字串 字串插值 字串插值 Created: November-22, 2018 雙引號分隔符 " 和%Q 序列支援使用 #{ruby_expression} 進行字串插值: puts "Now is #{Time.now}" # Now is Now is 2016-07-21 12:47:45 +0200 puts %Q(Now is #{Time.now}) # Now is Now is 2016-07-21 12:47:45 +0200 字串以。結尾字串以。開頭