Skip to content

Instantly share code, notes, and snippets.

@shoma
Created November 6, 2012 07:56
Show Gist options
  • Save shoma/4023331 to your computer and use it in GitHub Desktop.
Save shoma/4023331 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
print '|{0:{width}}|'.format('ああああ', width=8)
print '|{0:{width}}|'.format('あああ', width=8+3)
print '|{0:{width}}|'.format('ああ', width=8+2)
print '|{0:{width}}|'.format('あ', width=8+1)
print '|{0:{width}}|'.format('あa', width=8+1)
print '|{0:{width}}|'.format('aa', width=8)
print '|{0:{width}}|'.format('a', width=8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment