int i=zifuchuan.IndexOf(","); int n=(zifuchuan.SubString(i+1)).IndexOf(","); int index=i+n; index就是你求的第二个“,”的位置 如果求的是第三个第四个“,”的位置,就要用递归函数来写,具体思路跟上面的代码差不多 转载于:https://www.cnblogs.com/bwdblogs/p/10048701.html