i++ 先参与左边的运算,之后 i 自增; int i = 5; int result = i++; // result的值为5,i的值变为6 ++i i 先自增,之后的值,参与左边的运算; int i = 5; int result = ++i; // result的值为6,i的值也为6