借用DataTable的Compute函数进行计算。string formula = "1+1*4/3+23*(1+2)"; DataTable dt = new DataTable(); string really_data = dt.Compute(formula, "false").ToString();