Exception in thread "main" java.lang.ArithmeticException: / by zero 检查一下除数是否有0的情况,我觉得有除法运算的最好设为double型