蓝山帝景
您可以将您的代码拆分成这样的部分,看看它是如何工作的: int x = 15; int y = x++ + +x; System.out.println(y); //result: 31 (x = 15, then incremation so it is 15 + 16) System.out.println(x); //result: 16 because of previous incrementation y = y - 3; System.out.println(y); //result: 31 - 3 = 28 x %= y; System.out.println(x); //result: 16 % 28 = 16