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 字符串以。结尾字符串以。开头