小编use*_*223的帖子

将Python 2D矩阵/列表转换为表格

我怎么能这个:

students = [("Abe", 200), ("Lindsay", 180), ("Rachel" , 215)]
Run Code Online (Sandbox Code Playgroud)

进入这个:

Abe     200

Lindsay 180

Rachel  215
Run Code Online (Sandbox Code Playgroud)

编辑:这应该适用于任何大小的列表.

python 2d tuples list matrix

1
推荐指数
1
解决办法
1370
查看次数

标签 统计

2d ×1

list ×1

matrix ×1

python ×1

tuples ×1