System. out. println(0.0 / 0.0); 会输出 NaN,NAN就是not a number System.out. println(1.0 / 0.0); 会输出 Infinity