04 2023 档案

摘要:public static string CreateMd5(string text) { MD5 md5 = MD5.Create(); byte[] md5Byte= md5.ComputeHash(Encoding.ASCII.GetBytes(text)); StringBuilder sb 阅读全文
posted @ 2023-04-25 16:40 AWT-Stephen 阅读(76) 评论(0) 推荐(0)
摘要:1.数组项目求和 点击查看代码 int sum = 0; int[] s = new int[6] { 2, 3, 4, 7, 9, 6 }; foreach (int i in s) { sum += i; } Console.WriteLine(sum); 2.数组项求最大值和最小值 点击查看代 阅读全文
posted @ 2023-04-06 21:38 AWT-Stephen 阅读(34) 评论(0) 推荐(1)