如题所述
第1个回答 2011-12-05
ToCharArray()
第2个回答 2018-07-12
转化为文件名的字符串数组
{
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]);
}
{
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]);
}
第3个回答 2018-01-25
string question_id = "[sss,dddd,ffff,eee,rrr]"
string[] questionarr = question_id.Split(',');
string[] questionarr = question_id.Split(',');