强烈推荐一个在线工具:Convert CSV to ASCII Table
它是我最喜欢的表格格式转换工具,它可以将csv转换成不同的友好纯文本表格:
- ASCII 表(mysql 风格)
+─────────────+─────────+───────────────────+
| 2012-05-02 | palani | My first comment |
+─────────────+─────────+───────────────────+
| 2012-05-02 | raja | My second comment |
+─────────────+─────────+───────────────────+
| 2012-05-02 | palani | My third comment |
+─────────────+─────────+───────────────────+
| 2012-05-03 | raja | My fourth comment |
+─────────────+─────────+───────────────────+
- reStructuredText 网格表
+-------------+---------+-------------------+
| 2012-05-02 | palani | My first comment |
+=============+=========+===================+
| 2012-05-02 | raja | My second comment |
+-------------+---------+-------------------+
| 2012-05-02 | palani | My third comment |
+-------------+---------+-------------------+
| 2012-05-03 | raja | My fourth comment |
+-------------+---------+-------------------+
- Unicode 表(单行)
┌─────────────┬─────────┬───────────────────┐
| 2012-05-02 | palani | My first comment |
├─────────────┼─────────┼───────────────────┤
| 2012-05-02 | raja | My second comment |
| 2012-05-02 | palani | My third comment |
| 2012-05-03 | raja | My fourth comment |
└─────────────┴─────────┴───────────────────┘
- 统一码表
╔═════════════╦═════════╦═══════════════════╗
║ 2012-05-02 ║ palani ║ My first comment ║
╠═════════════╬═════════╬═══════════════════╣
║ 2012-05-02 ║ raja ║ My second comment ║
║ 2012-05-02 ║ palani ║ My third comment ║
║ 2012-05-03 ║ raja ║ My fourth comment ║
╚═════════════╩═════════╩═══════════════════╝
以及其他一些格式的纯文本 ASCII 表。您也可以输入“强制分隔行”来决定是否清楚地表达标题!