【文件属性】:
文件名称:学习第六周题目
文件大小:218KB
文件格式:RAR
更新时间:2022-01-17 04:09:31
C#
int[] num = new int[] { 25, 32, 56, 231 };
string[] num2 = new string[] { "e.c", "243", "443", "44421" };
List list1 = new List() { "15", "243", "454", "sfd", "345fg" };
int sum = num.Sum();
int max = num.Max();
int min = num.Min();
double ave = num.Average();
int num1 = num.Aggregate((s, t) => s + t);
//Console.WriteLine(num1);
//返回序列的中满足某条件的第一个元素本身,或者元素的索引:
/*a.满足条件第一个元素本身:
序列.First(指定条件,如s=>s.StartsWith("e"))
b.满足条件第一个元素的索引(位置):
var query = (from n in TextData select n).TakeWhile(s => s[0] != 'D');
int firstStation = query.Count();//firstStation即是索
【文件预览】:
dailyPraictice2018-12-14.rar
dailyPractice2018-12-13.rar
Calculator.rar
dailyPractice2018.12.11.rar
dailyPractice2018._12._12.rar
每日练习2018,12,10.rar