"+ ="代表什么? (加等于)是什么意思? [英] What does "+=" (plus equals) mean?
本文介绍了"+ ="代表什么? (加等于)是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在做一些红宝石练习,它说我需要返回并用+=
速记符号重写脚本.
I am doing some ruby exercises and it said I need to go back and rewrite the script with +=
shorthand notations.
此练习主要涉及学习新方法.问题是,我不知道+=
在尝试在线查找时意味着什么.
This exercise deals primarily with learning new methods. The problem is, I have no idea what +=
means when I tried to look it up online.
推荐答案
+=
是简写运算符.
someVar += otherVar
与
someVar = someVar + otherVar
这篇关于"+ ="代表什么? (加等于)是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文