C# 算速表达式 public object ComputeExpression(string expression) { var result = new DataTable().Compute(expression, null); return result; } MessageBox.Show(ComputeExpression("(1363 + 123)*345 /123").ToString());http://stackoverflow.com/questions/2859111/c-sharp-math-calculator 来自为知笔记(Wiz)