pythonについて質問です。
'abcdef'から'cdefab'のようなものを得たいのですが、
次の方法よりも簡単にかける方法はありませんか?
-----------------
src_str = 'abcdef'
idxs = map(lambda x: (x + 2)%len(src_str), xrange(0, len(src_str)))
dst_str = ''.join([src_str[i] for i in idxs])
-----------------
よろしくお願いします。