It's the remainder operator and is used to get the remainder after integer division.(它是余数运算符 ,用于在整数除法后得到余数。)
Lots of languages have it.(很多语言都有它。) For example:(例如:)
10 % 3 // = 1 ; because 3 * 3 gets you 9, and 10 - 9 is 1.
Apparently it is not the same as the modulo operator entirely.(显然,它与模运算符完全不同。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…