@Test public void test6(){ Double n1=0.0; Integer n2=0; Double n3=n1/n2; System.out.println(n3); } 系统中需要考虑到这种情况,避免出现NaN的情况