li = ["alex"," aric","Alex","Tony","rain"]for i in li: new_li = i.strip() if (new_li.startswith('a') or new_li.startswith('A')) and new_li.endswith('c'): print(new_li)…
对于一个List<T>对象来说移除其中的元素是常用的功能.自己总结了一下,列出自己所知的几种方法. class Program { static void Main(string[] args) { try { List<Student> studentList = new List<Student>(); ; i < ; i++) { Student s = new Student() { Age = , Name = "John" }; s…