110,535
社区成员
发帖
与我相关
我的任务
分享
Console.WriteLine(string.Join("", "M9:N6:A7:10".Select(c => c <= 'Z' && c >= 'A' ? arr[c - 'A'] : c.ToString())));
Console.WriteLine(string.Join("", "M9:N6:A7:10".Select(c => c <= 'Z' && c >= 'A' ? (c - 'A' + 1).ToString() : c.ToString())));
139:146:17:10
string.Join("-", mac.Split(new[] { ':' }, StringSplitOptions.RemoveEmptyEntries).Select(s => int.Parse(s, System.Globalization.NumberStyles.HexNumber)));