sam*_*tha 5

  1. a += b 是...的语法简写 a = a + b
  2. a =+ b 类似于 a = + b

因此,firstValue = firstValue + secondValuefirstValue = firstValue.+(secondValue)在红宝石中一样。 firstValue + = secondValue–增量将的值添加secondValue到的值firstValue,将结果存储在中firstValue,然后返回新值。