C# 截取字符串-substring

语法:

string Substring(int start Index) 取从位置start Index开始一直到最后的子字符串

string Substring(int startIndex,int length) 取从位置startIndex开始长度为length的子字符串,如果子字符串的长度不足length则报错

具体如下:

猜你喜欢

转载自blog.csdn.net/qq_42675313/article/details/81748850