public static void rangg()
{
string a = "1.jpg2.jpg3.jpg4.jpg";
string t = "jpg";string tt = "jpg ";
string b = a.Replace(t, tt);
string[] c = b.Split(' ');
for (int i = 0; i < c.Length; i++)
{
Console.WriteLine(c[i]);
}
}
不知这样是不是最好的方法?