如何获取列表中从索引1开始以及之后的所有内容的所有值?
list.Split(' ')[1:]
最佳答案
使用Linq:
var l = list.Split(' ').Skip(1);
关于c# - C#从特定组获取值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15530813/
如何获取列表中从索引1开始以及之后的所有内容的所有值?
list.Split(' ')[1:]
最佳答案
使用Linq:
var l = list.Split(' ').Skip(1);
关于c# - C#从特定组获取值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15530813/