交流更多,收获更多?
List<int> L=new List<int>(); Random random = new Random(); for (int i = 1; i <= 100; i++) { if (L.IndexOf(i) < 0) { L.Add(random.Next(1,100)); } } L.Reverse(); L.Sort(); //并支持排序
Powered by: 博客园 Copyright © 2024 Sun_china Powered by .NET 8.0 on Kubernetes