Skip to content

Instantly share code, notes, and snippets.

View toenobu's full-sized avatar
🏠
Working from home

toenobu

🏠
Working from home
View GitHub Profile
@toenobu
toenobu / vert.py
Last active December 15, 2015 00:49 — forked from yatt/vert.py
#! /usr/bin/python2.7
# coding: utf-8
target = u"""サンプルの文字列です。
Pythonで文字列を縦書きに
変換します。"""
lst = target.split()[::-1]
# mapで転置して結合