日期:2014-05-17 浏览次数:20706 次
string str1 = "婕婧苒珝琄雅珶绛珺茵景琚琦皙箐菲菡瑗嘉葆仪蓓筱蔚薇欣芬栩卿梧楠蕾旭筠蕊";
string str2 = "朗晶皓智婷煊煌烁煜焕暖赫荣彰宁彻晓烨晔炽燃道旷颢灿臻采曙曜耀显采亮炳晤熠达";
List<string> list1 = new List<string>();
List<string> list2= new List<string>();
StringBuilder sb = new StringBuilder();
foreach (char s in str1)
{
list1.Add(s+",");
}
foreach (char s in str2)
{
list2.Add(s + ",");
}
for (int i = 0; i < list1.Count; i++)
{
//这里没考虑str2最后两个没匹配问题你自己弄下
sb.Append(list1[i].Replace(",","") + list2[i] );
}
MessageBox.Show(sb.ToString());