print "Hi" print "Hi"
因为它只会输出:@H_301_5@
HiHi
puts
puts "Hi" puts "Hi"
如果你想显示一个显式的换行符,那么你需要知道你的程序将运行什么样的系统:@H_301_5@
print "Hi\n" # For UNIX-like systems including Mac OS X. print "Hi\r\n" # For Windows.