实例:
1.根据select条件筛选
List<int> listPM10 = dt.Select($"time_hour>='{date1 + " " + listTime[0]}' and time_hour<='{date + " " + listTime.Last()}' and PType='tbj'")
.AsEnumerable().Select(x => Convert.ToInt32(x["PM10"].ToString()))
.ToList();
List<int> listGKD = dt.Select($"time_hour>='{date1 + " " + listTime[0]}' and time_hour<='{date + " " + listTime.Last()}' and PType='gkd'")
.AsEnumerable().Select(x => Convert.ToInt32(x["PM10"].ToString()))
.ToList();