📜  ruby 代码示例中的新行

📅  最后修改于: 2022-03-11 15:04:46.644000             🧑  作者: Mango

代码示例2
# For a new line, insert \n
print "hello", "\n", "hello", "\n"

# puts automatically adds new line at end of text
puts "run"

# also use \n in strings
text = "The quick, brown fox\njumped"
print text;