puts "You can tpye everything you want in here: " words_input = [ ] while (input = gets.chomp) != "" words_input << input # 请问这里的 << 是什么意思呢? end puts puts words_input.sort
我一直理解为追加。。。,把 input,追加到数组 words_input 里。。。嘎嘎
#1 楼 @help5305fff 是喔。。。
@chankaward http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-3C-3C