C# 在字符串中四则运算 添加引用using System.Data; // 结果很值得尝试,看看哟 MessageBox.Show(new DataTable().Compute("10086+20*10000-10010+789+456-7", null).ToString());