print "e38080e38080312e20e4b8ade59bbd20312c3336312c3531322c3533350a".split(//,2)
这样分出来是 2 组 我要按每两个为一组 是不是只能 each 遍历了?
"e38080e38080312e20e4b8ade59bbd20312c3336312c3531322c3533350a".scan /../
"askxjdisiskx".chars.in_groups_of 2
http://apidock.com/rails/Array/in_groups_of
each_slice
学习了
print ("e38080e38080312e20e4b8ade59bbd20312c3336312c3531322c3533350a".scan /../).map{|slice|slice.upcase}.join(' ') "e38080e38080312e20e4b8ade59bbd20312c3336312c3531322c3533350a".chars.each_slice(2) do |slice| print slice.join.upcase,32.chr end