内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
15_python
»
01 PrettyTable
トレース:
15_python:01_prettytable
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 01 PrettyTable ====== $ pip3 search PrettyTable PrettyTable (7) - A simple Python library for easily displaying tabular data in a visually appealing ASCII table format. <code> from prettytable import PrettyTable def outputTable(): x = PrettyTable() x.field_names = {"a","b","c"} x.add_row({"1","2","3"}) print(x.get_string()) if __name__ == '__main__': outputTable() </code> ===== 実行結果 ===== <code> +---+---+---+ | c | b | a | +---+---+---+ | 1 | 3 | 2 | +---+---+---+ </code> {{tag>python}}
15_python/01_prettytable.txt
· 最終更新: 2019/03/26 13:09 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ