katrina-leng

1,初始化直接赋值

List<string> unlocList = new List<string>
{
"CNNKG",
"CNSHH-CNSHA-CNSGH",
"USLAX-USLGB"
};

2,list.add()的方式

List<string> unlocList = new List<string>();

unlocList .Add("CNNKG");

unlocList .Add("CNSHH-CNSHA-CNSGH");

unlocList .Add("USLAX-USLGB");

 

分类:

技术点:

相关文章: