Kennt jemand vielleicht andere Unicode-Zeichen, mit denen das gut geht?
Code: Alles auswählen
>>> import unicodedata
>>> horizontal_line = unicodedata.lookup('BOX DRAWINGS LIGHT HORIZONTAL')
>>> vertical_line = unicodedata.lookup('BOX DRAWINGS LIGHT VERTICAL')
>>> corner = unicodedata.lookup('BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL')
>>> header = unicodedata.lookup('BOX DRAWINGS DOUBLE HORIZONTAL')
>>> print '{0}{1}{0}\n{2} {2}\n{0}{1}{0}'.format(
... corner.encode('utf-8'),
... horizontal_line.encode('utf-8'),
... vertical_line.encode('utf-8'))
┼─┼
│ │
┼─┼