This file contains hidden or 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
#! /usr/bin/python2.7 | |
# coding: utf-8 | |
target = u"""サンプルの文字列です。 | |
Pythonで文字列を縦書きに | |
変換します。""" | |
lst = target.split()[::-1] | |
# mapで転置して結合 |