.net 截取字符串

2024-12-23 02:14:17
推荐回答(1个)
回答1:

for(int i=0;i{
s1[i]=s1[i].Substring(0, s1[i].IndexOf('.'));
}