且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用Ruby每两个字符反转一个字符串

更新时间:2021-11-11 22:47:43

我不确定这是否是***的方法:

I'm not sure if this is the best way to do it:

"0123456789abcdef".scan(/../).reverse.join == "efcdab8967452301"