取余

if(i%2==0)

原文地址:https://www.cnblogs.com/KiVen2015/p/5714565.html