+=表示相加并赋值,“i+=5”与“i=i+5”是等效的。 类似的运算符还有-=,*=,/=。 i-=5等价于i=i-5; i*=5等价于i=i*5; i/=5等价于i=i/5。 转载于:https://www.cnblogs.com/f6056/p/9405738.html