DataTable dt = new DataTable(); string str="1+2*(5+3)+3-1"; dt.Compute(str, "false").ToString(); 转载于:https://www.cnblogs.com/yougmi/p/11544557.html