昊天SEO

练习8:打印,打印–笨方法学ruby在线

formatter = "%s %s %s %s"

puts formatter % [1, 2, 3, 4]
puts formatter % ["one", "two", "three", "four"]
puts formatter % [true, false, false, true]
puts formatter % [formatter, formatter, formatter, formatter]
puts formatter % [
   "I had this thing.",
   "That you could type up right.",
    "But it didn't sing.",
    "So I said goodnight."
]

本文地址官网    新乡网站建设,seo

分享到:更多 ()
a