<<<<<在整数和字符串对象的ruby中。 我在irb
中尝试了以下内容irb(main):001:0> a=1
=> 1
irb(main):002:0> b=3
=> 3
irb(main):003:0> a<<b
=> 8
irb(main):004:0> a+b
=> 4
irb(main):005:0> a="aa"
=> "aa"
irb(main):006:0> b="bb"
=> "bb"
irb(main):007:0> a<<b
=> "aabb"
irb(main):008:0> a+b
=> "aabbbb"