可以使用
Console.Write(string.Join(",",myList));也可以使用
Console.Write(myList[0]);for?(int?i?=?1;?i?<?st.Length;?i++)
{
Console.Write(",{0}",myList[i]);
} 還有
StringBuilder?builder?=?new?StringBuilder();foreach?(var?doub?in?myList)
{
builder.Append(doub?+?",");
}
builder.Remove(builder.Length?-?1,?1);
Console.WriteLine(builder.ToString());
其實原理都差不多