protected static void printLog(int cycleCalc, int i, double next, double now, double cycleIn, double sum) {
		
		// 每次循环都需要计算isIndex 和 rate
		boolean isIndex = false;//只打印阶段性的日志，而不是全部，因为全部日志条数过多
		double rate = 0;
		
		checkType(cycleCalc);		
		
		if(Constant.isPrint){
			switch(type){
			case 0:
				rate = Math.round( (next - (cycleIn * i) ) / (cycleIn*i) * Constant.PERCENT);
				isIndex = true;
			case 1:
				rate = Math.round( (next - (cycleIn * i) ) / (cycleIn*i) * Constant.PERCENT);
				if(i% Constant.YEAR_MONTHS == 0 ){
					isIndex = true;
				}
			case 2:
				rate = Math.round( (next-sum ) / sum * Constant.PERCENT);
				if(i% Constant.YEAR_DAYS == 0 ){
					isIndex = true;
				}			
			}			
			
			if(isIndex){
				System.out.print("第" + i + dayORmonth + "  --- 从"+Math.round(now)+" 到   "+Math.round(next));				 
				System.out.println("， 目前总收益率   " +rate +" %");
			}
		}
	}