1 2 3
5
6 7
这样的数组怎么组成一个固定 行长度的字符串那?
156,157,254,257,356,357
假如是
1
3
45
结果就是 134 ,135
假如是
1
3
45
3
结果就是 1343 ,1353
5
6 7
这样的数组怎么组成一个固定 行长度的字符串那?
156,157,254,257,356,357
假如是
1
3
45
结果就是 134 ,135
假如是
1
3
45
3
结果就是 1343 ,1353
解决方案
100
string[] a = {"1","2","3"}; string[] b = {"5"}; string[] c = { "6","7" }; var q = from a1 in a from b1 in b from c1 in c select a1 + b1 + c1; foreach (var item in q) { Console.WriteLine(); }