print 全角文字＋半角文字

```Python:print_moji.py
#!/usr/bin/python
# -*- encoding: utf-8 -*-

print '-' * 60
print '# 半角文字'
print '| %%20s|%20s| %%20s|%20s|' % ('UTF-8','Unicode')
print '| %%20s|%20s| %%20s|%20s|' % ('-' * 20,'-' * 20)
print '| %%20s|%20s| %%20s|%20s|' % ('1'                    , u'1'                   )
print '| %%20s|%20s| %%20s|%20s|' % ('12'                   , u'12'                  )
print '| %%20s|%20s| %%20s|%20s|' % ('123'                  , u'123'                 )
print '| %%20s|%20s| %%20s|%20s|' % ('1234'                 , u'1234'                )
print '| %%20s|%20s| %%20s|%20s|' % ('12345'                , u'12345'               )
print '| %%20s|%20s| %%20s|%20s|' % ('123456'               , u'123456'              )
print '| %%20s|%20s| %%20s|%20s|' % ('1234567'              , u'1234567'             )
print '| %%20s|%20s| %%20s|%20s|' % ('12345678'             , u'12345678'            )
print '| %%20s|%20s| %%20s|%20s|' % ('123456789'            , u'123456789'           )
print '| %%20s|%20s| %%20s|%20s|' % ('1234567890'           , u'1234567890'          )
print '| %%20s|%20s| %%20s|%20s|' % ('12345678901'          , u'12345678901'         )
print '| %%20s|%20s| %%20s|%20s|' % ('123456789012345'      , u'123456789012345'     )
print '| %%20s|%20s| %%20s|%20s|' % ('12345678901234567890' , u'12345678901234567890')
print '-' * 60
print '#  全角文字'
print '-'* 60
print '| %%20s|%20s| %%20s|%20s|' % ('12345678901234567890' , u'12345678901234567890')
print '-'* 60
print '| %%21s|%(moji)21s| %%20s|%(moji)20s|' % {'moji':'１'}
print '| %%22s|%(moji)22s| %%20s|%(moji)20s|' % {'moji':'１２'}
print '| %%23s|%(moji)23s| %%20s|%(moji)20s|' % {'moji':'１２３'}
print '| %%24s|%(moji)24s| %%20s|%(moji)20s|' % {'moji':'１２３４'}
print '| %%25s|%(moji)25s| %%20s|%(moji)20s|' % {'moji':'１２３４５'}
print '| %%26s|%(moji)26s| %%20s|%(moji)20s|' % {'moji':'１２３４５６'}
print '| %%27s|%(moji)27s| %%20s|%(moji)20s|' % {'moji':'１２３４５６７'}
print '| %%28s|%(moji)28s| %%20s|%(moji)20s|' % {'moji':'１２３４５６７８'}
print '| %%29s|%(moji)29s| %%20s|%(moji)20s|' % {'moji':'１２３４５６７８９'}
print '| %%30s|%(moji)30s| %%20s|%(moji)20s|' % {'moji':'１２３４５６７８９０'}
print '-'* 60
print '#  全角文字(Unicode文字列)'
print '-'* 60
print '| %%20s|%20s| %%20s|%20s|' % ('12345678901234567890' , u'12345678901234567890')
print '-'* 60
print '| %%19s|%(moji)19s| %%20s|%(moji)20s|' % {'moji':u'１'}
print '| %%18s|%(moji)18s| %%20s|%(moji)20s|' % {'moji':u'１２'}
print '| %%17s|%(moji)17s| %%20s|%(moji)20s|' % {'moji':u'１２３'}
print '| %%16s|%(moji)16s| %%20s|%(moji)20s|' % {'moji':u'１２３４'}
print '| %%15s|%(moji)15s| %%20s|%(moji)20s|' % {'moji':u'１２３４５'}
print '| %%14s|%(moji)14s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６'}
print '| %%13s|%(moji)13s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６７'}
print '| %%12s|%(moji)12s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６７８'}
print '| %%11s|%(moji)11s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６７８９'}
print '| %%10s|%(moji)10s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６７８９０'}
print '-'* 60
print '#  全角文字＋半角文字'
print '-'* 60
print '| %%20s|%20s| %%20s|%20s|' % ('12345678901234567890' , u'12345678901234567890')
print '-'* 60
print '| %%21s|%(moji)21s| %%20s|%(moji)20s|' % {'moji':'１234567890123456789'}
print '| %%22s|%(moji)22s| %%20s|%(moji)20s|' % {'moji':'１２3456789012345678'}
print '| %%23s|%(moji)23s| %%20s|%(moji)20s|' % {'moji':'１２３45678901234567'}
print '| %%24s|%(moji)24s| %%20s|%(moji)20s|' % {'moji':'１２３４567890123456'}
print '| %%25s|%(moji)25s| %%20s|%(moji)20s|' % {'moji':'１２３４５6789012345'}
print '| %%26s|%(moji)26s| %%20s|%(moji)20s|' % {'moji':'１２３４５６78901234'}
print '| %%27s|%(moji)27s| %%20s|%(moji)20s|' % {'moji':'１２３４５６７890123'}
print '| %%28s|%(moji)28s| %%20s|%(moji)20s|' % {'moji':'１２３４５６７８9012'}
print '| %%29s|%(moji)29s| %%20s|%(moji)20s|' % {'moji':'１２３４５６７８９01'}
print '| %%30s|%(moji)30s| %%20s|%(moji)20s|' % {'moji':'１２３４５６７８９０'}
print '-'* 60
print '#  全角文字＋半角文字(Unicode文字列)'
print '-'* 60
print '| %%20s|%20s| %%20s|%20s|' % ('12345678901234567890' , u'12345678901234567890')
print '-'* 60
print '| %%19s|%(moji)19s| %%20s|%(moji)20s|' % {'moji':u'１234567890123456789'}
print '| %%18s|%(moji)18s| %%20s|%(moji)20s|' % {'moji':u'１２3456789012345678'}
print '| %%17s|%(moji)17s| %%20s|%(moji)20s|' % {'moji':u'１２３45678901234567'}
print '| %%16s|%(moji)16s| %%20s|%(moji)20s|' % {'moji':u'１２３４567890123456'}
print '| %%15s|%(moji)15s| %%20s|%(moji)20s|' % {'moji':u'１２３４５6789012345'}
print '| %%14s|%(moji)14s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６78901234'}
print '| %%13s|%(moji)13s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６７890123'}
print '| %%12s|%(moji)12s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６７８9012'}
print '| %%11s|%(moji)11s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６７８９01'}
print '| %%10s|%(moji)10s| %%20s|%(moji)20s|' % {'moji':u'１２３４５６７８９０'}
```

結果

```
------------------------------------------------------------
# 半角文字
| %20s|               UTF-8| %20s|             Unicode|
| %20s|--------------------| %20s|--------------------|
| %20s|                   1| %20s|                   1|
| %20s|                  12| %20s|                  12|
| %20s|                 123| %20s|                 123|
| %20s|                1234| %20s|                1234|
| %20s|               12345| %20s|               12345|
| %20s|              123456| %20s|              123456|
| %20s|             1234567| %20s|             1234567|
| %20s|            12345678| %20s|            12345678|
| %20s|           123456789| %20s|           123456789|
| %20s|          1234567890| %20s|          1234567890|
| %20s|         12345678901| %20s|         12345678901|
| %20s|     123456789012345| %20s|     123456789012345|
| %20s|12345678901234567890| %20s|12345678901234567890|
------------------------------------------------------------
#  全角文字
------------------------------------------------------------
| %20s|12345678901234567890| %20s|12345678901234567890|
------------------------------------------------------------
| %21s|                  １| %20s|                 １|
| %22s|                １２| %20s|              １２|
| %23s|              １２３| %20s|           １２３|
| %24s|            １２３４| %20s|        １２３４|
| %25s|          １２３４５| %20s|     １２３４５|
| %26s|        １２３４５６| %20s|  １２３４５６|
| %27s|      １２３４５６７| %20s|１２３４５６７|
| %28s|    １２３４５６７８| %20s|１２３４５６７８|
| %29s|  １２３４５６７８９| %20s|１２３４５６７８９|
| %30s|１２３４５６７８９０| %20s|１２３４５６７８９０|
------------------------------------------------------------
#  全角文字(Unicode文字列)
------------------------------------------------------------
| %20s|12345678901234567890| %20s|12345678901234567890|
------------------------------------------------------------
| %19s|                  １| %20s|                   １|
| %18s|                １２| %20s|                  １２|
| %17s|              １２３| %20s|                 １２３|
| %16s|            １２３４| %20s|                １２３４|
| %15s|          １２３４５| %20s|               １２３４５|
| %14s|        １２３４５６| %20s|              １２３４５６|
| %13s|      １２３４５６７| %20s|             １２３４５６７|
| %12s|    １２３４５６７８| %20s|            １２３４５６７８|
| %11s|  １２３４５６７８９| %20s|           １２３４５６７８９|
| %10s|１２３４５６７８９０| %20s|          １２３４５６７８９０|
------------------------------------------------------------
#  全角文字＋半角文字
------------------------------------------------------------
| %20s|12345678901234567890| %20s|12345678901234567890|
------------------------------------------------------------
| %21s|１234567890123456789| %20s|１234567890123456789|
| %22s|１２3456789012345678| %20s|１２3456789012345678|
| %23s|１２３45678901234567| %20s|１２３45678901234567|
| %24s|１２３４567890123456| %20s|１２３４567890123456|
| %25s|１２３４５6789012345| %20s|１２３４５6789012345|
| %26s|１２３４５６78901234| %20s|１２３４５６78901234|
| %27s|１２３４５６７890123| %20s|１２３４５６７890123|
| %28s|１２３４５６７８9012| %20s|１２３４５６７８9012|
| %29s|１２３４５６７８９01| %20s|１２３４５６７８９01|
| %30s|１２３４５６７８９０| %20s|１２３４５６７８９０|
------------------------------------------------------------
#  全角文字＋半角文字(Unicode文字列)
------------------------------------------------------------
| %20s|12345678901234567890| %20s|12345678901234567890|
------------------------------------------------------------
| %19s|１234567890123456789| %20s| １234567890123456789|
| %18s|１２3456789012345678| %20s|  １２3456789012345678|
| %17s|１２３45678901234567| %20s|   １２３45678901234567|
| %16s|１２３４567890123456| %20s|    １２３４567890123456|
| %15s|１２３４５6789012345| %20s|     １２３４５6789012345|
| %14s|１２３４５６78901234| %20s|      １２３４５６78901234|
| %13s|１２３４５６７890123| %20s|       １２３４５６７890123|
| %12s|１２３４５６７８9012| %20s|        １２３４５６７８9012|
| %11s|１２３４５６７８９01| %20s|         １２３４５６７８９01|
| %10s|１２３４５６７８９０| %20s|          １２３４５６７８９０|
```