新手问题 请教一下菜鸟问题

chankaward · October 17, 2012 · Last by diudiutang replied at October 17, 2012 · 2095 hits
puts "You can tpye everything you want in here: "
words_input = [ ]
while (input = gets.chomp) != "" 
  words_input << input  # 请问这里的 << 是什么意思呢?
end
puts 
puts words_input.sort
Unknow user #1 October 17, 2012

我一直理解为追加。。。,把 input,追加到数组 words_input 里。。。嘎嘎

You need to Sign in before reply, if you don't have an account, please Sign up first.