2009-10-24 いつか補記する Ruby def aaa(s) s.unpack('a2'*(s.length/2)).join(' ') end 例えばsに'3132'って入れると'31 32'って文字列が返る。