神棍 List.Accumulate 测试篇
源:
代码:
= List.Accumulate(源&{""},{{},""},(x,y)=>
if x{1}="" and y ="S" then {x{0},y}
else if y < ":" and y >"/" then {x{0},x{1}&y}
else if Text.Length(x{1})= 7 and List.Count(x{0}) <=5 then {x{0}&{x{1}},""}
//else if List.Count(x{0}) =3 then {{x{0}{1}},"" }
else {x{0},""} )
通过测试,看看结果,再通过多次测试总结运算规律,再运用规律解决问题,
这是一件非常苦的事情,
自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)