The double equal sign is used for comparisons, rather than setting values.
双等于号用于比较而不是用于设置值。
Note the difference between the equal sign (=) and the eq operator.
注意等于号(=)和eq操作符之间的区别。
一个等号是用来做什么的?
Equations are generally written with an equal sign.
等式通常用等号来写。
The equal sign (=) joins the two.
等号 (=)连接两者。
So this is the equality operator, whereas the single equal sign is the assignment operator.
所以这是相等操作符,然而那个单等号是一个赋值运算符。
应用推荐