-
-
Save anonymous/8ee15a838a1d343685d5d3fe70db0b50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import sys | |
from collections import deque | |
s = re.sub(r'\s+', '', ''.join(sys.argv[1:])) | |
d = deque(s) | |
s = '\n'.join('%s' % (' '.join(d), d.rotate(-1))[0] for _ in s) | |
print('[b]\n%s\n[/b]' % s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment