【ValueError: math domain error】 写python程序时,出现错误: ValueError: math domain error 原因:某些操作不符合数学定义,如对负数取对数,对负数开平方。