ruby 16种 hello world 写法

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

print '1 hello world! ' + "\n"
print "2 hello world!\n"
print('3 hello world! ' + 10.chr )
print("4 hello world!\n")
print %q-5 hello world! - + 10.chr
print %Q-6 hello world!\n-
puts %Q.7 hello world!\n.
p '8 hello world!'
p "9 hello world!"
p "10 hello" " world!"
p "11 hello" + " world!"
p '12 hello' << " world!"
printf "13 hello world!
"
puts `echo 14 hello world`
puts eval('"15 hello world\n"')
puts eval("'16 hello world
'")