willsonlincake 发表于 2022-5-1 19:13:31

Python输出文本表格

>>> from tabletext import to_text
>>> a = [["Code", "Name"],
         ["AD", "ANDORRA"],
         ["AE", "UNITED ARAB EMIRATES"],
         ["AF", "AFGHANISTAN"],
         ["AG", "ANTIGUA AND BARBUDA"]]
>>> print to_text(a)

页: [1]
查看完整版本: Python输出文本表格