List<string> namelist = new List<string>();
string[] namejh = null;
string name= "张三+李四+王五";
第一步:将三个名字分离出来
namejh = name.Split("+".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
namelist = new List<string>(namejh);
时间: 2024-10-27 14:00:13