<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 403, comments - 310, trackbacks - 0, articles - 7
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    texttable - module for creating simple ASCII tables

    Posted on 2007-09-10 23:40 ZelluX 閱讀(509) 評論(0)  編輯  收藏 所屬分類: Scripting
    http://jefke.free.fr/soft/texttable/
    dl:  http://jefke.free.fr/soft/texttable/texttable.py
    NAME
        texttable - module for creating simple ASCII tables
    FILE
        /usr/lib/python2.3/site-packages/texttable.py
    DESCRIPTION
        Example:
            table = Texttable()
            table.header(["Name", "Age"])
            table.set_cols_align(["l", "r"])
            table.add_row(["Xavier\nHuon", 32])
            table.add_row(["Baptiste\nClement", 1])
            table.draw()
        Result:
            +----------+-----+
            |   Name   | Age |
            +==========+=====+
            | Xavier   |  32 |
            | Huon     |     |
            +----------+-----+
            | Baptiste |   1 |
            | Clement  |     |
            +----------+-----+
    CLASSES
        exceptions.Exception
            ArraySizeError
        Texttable
        class ArraySizeError(exceptions.Exception)
         |  Exception raised when specified rows don't fit the required size
         |
         |  Methods defined here:
         |
         |  __init__(self, msg)
         |
         |  __str__(self)
         |
         |  ----------------------------------------------------------------------
         |  Methods inherited from exceptions.Exception:
         |
         |  __getitem__(...)
        class Texttable
         |  Methods defined here:
         |
         |  __init__(self, max_width=80)
         |      Constructor
         |      - max_width is an integer, specifying the maximum width of the t
    able
         |      - if set to 0, size is unlimited, therefore cells won't be wrapp
    ed
         |
         |  add_row(self, array)
         |      Add a row in the rows stack
         |
         |      Cells can contain newlines.
         |
         |  draw(self)
         |      Draw the table
         |
         |  header(self, array)
         |      Specify the header of the table
         |
         |  reset(self)
         |      Reset the instance:
         |      - reset rows and header
         |
         |  set_chars(self, array)
         |      Set the characters used to draw lines between rows and
         |      columns.
         |
         |      The array should contain 4 fields:
         |
         |          [horizontal, vertical, corner, header]
         |
         |      Default is set to:
         |
         |          ['-', '|', '+', '=']
         |
         |  set_cols_align(self, array)
         |      Set the desired columns alignment
         |
         |      The elements of the array should be either "l", "c" or "r"
         |       - "l": column flushed left
         |       - "c": column centered
         |       - "r": column flushed right
         |
         |  set_cols_width(self, array)
         |      Set the desired columns width
         |
         |      The elements of the array should be integers, specifying the
         |      width of each column. For example:
         |
         |           [10, 20, 5]
         |
         |  set_deco(self, deco)
         |      Set the table decoration. 'deco' can be a combinaison of:
         |
         |      Texttable.BORDER: Border around the table
         |      Texttable.HEADER: Horizontal line below the header
         |      Texttable.HLINES: Horizontal lines between rows
         |      Texttable.VLINES: Vertical lines between columns
         |
         |      Example:
         |
         |          Texttable.BORDER | Texttable.HEADER
         |
         |      All of them are enabled by default.
         |
         |  --------------------------------------------------------------------
    --
         |  Data and other attributes defined here:
         |
         |  BORDER = 1
         |
         |  HEADER = 4
         |
         |  HLINES = 8
         |
         |  VLINES = 16
    DATA
        __all__ = ['Texttable', 'ArraySizeError']
        __author__ = 'Gerome Fournier <jefke(at)free.fr>'
        __credits__ = 'Jeff Kowalczyk:\n    - textwrap improved import\n    - ..
    .
        __license__ = 'GPL'
        __revision__ = '$Id: texttable.py,v 1.3 2003/10/05 13:53:39 jef Exp je..
    .
        __version__ = '0.3'
    VERSION
        0.3
    AUTHOR
        Gerome Fournier <jefke(at)free.fr>
    CREDITS
        Jeff Kowalczyk:
            - textwrap improved import
            - comment concerning header output
    主站蜘蛛池模板: 亚洲国产高清在线精品一区| 成人免费无码视频在线网站| 无码区日韩特区永久免费系列| 99精品在线免费观看| 亚洲国产另类久久久精品黑人| 美国免费高清一级毛片| 又粗又硬又大又爽免费视频播放| 亚洲精品动漫免费二区| 国产精品99精品久久免费| 国产亚洲精品岁国产微拍精品| a色毛片免费视频| 亚洲AV无码AV男人的天堂| 无码专区AAAAAA免费视频| 337p日本欧洲亚洲大胆色噜噜| 亚洲黄色免费在线观看| 亚洲人xxx日本人18| 国产又大又黑又粗免费视频| 一级中文字幕乱码免费| 中文字幕精品亚洲无线码二区 | 粉色视频成年免费人15次| 日韩亚洲精品福利| 国产乱子伦精品免费视频| 午夜亚洲www湿好大| 国产精品免费观看| 激情小说亚洲色图| 亚洲日韩小电影在线观看| 亚洲免费视频网址| 爱爱帝国亚洲一区二区三区| 亚洲香蕉成人AV网站在线观看| 最好看最新的中文字幕免费| 狠狠色伊人亚洲综合成人| 中文字幕视频免费| 亚洲AV成人片无码网站| 亚洲码国产精品高潮在线| 免费A级毛片无码无遮挡内射| 蜜芽亚洲av无码一区二区三区| 国产成人麻豆亚洲综合无码精品| 曰批全过程免费视频网址| 国产成人亚洲精品电影| 亚洲AV日韩AV高潮无码专区| 暖暖日本免费在线视频|