【发布时间】:2020-11-12 19:32:56
【问题描述】:
我编写了一个程序,它在 python 中以表格形式(使用制表符)为我提供数据:
from tabulate import tabulate
matrix=[[1,2,3,4],[5,6,7,8]]
print(tabulate(matrix))
它给了我这个输出:
现在说我想把这个表分成 2 个这样它给出:
我该怎么做?
【问题讨论】:
-
请使用tour、阅读what's on-topic here、How to Ask和question checklist,并提供minimal reproducible example。 “为我实现此功能”与此站点无关。你必须诚实地尝试,然后就你的算法或技术提出一个具体问题。