@Tony612 我又做了一个试验。如果单个赋值的话按正常理解没有任何问题 irb(main):001:0> x=1 => 1 irb(main):002:0> y=2 => 2 irb(main):003:0> x.object_id => 3 irb(main):004:0> y.object_id => 5 irb(main):005:0> x=y => 2 irb(main):006:0> x.object_id => 5 irb(main):007:0> y => 2 irb(main):008:0> y.object_id => 5 irb(main):009:0> y=x => 2 irb(main):010:0> y.object_id => 5 irb(main):011:0> puts x,y 2 2