matrix = [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4], [1, 2, 3, 4, 5], [3, 4, 5], [2, 3, 4, 5], ]# 现在需要将矩阵中所有的列表长度对齐到最长的列表的长度5,末尾全部用0填充max_len = max((len(l) Read More
posted @ 2019-03-24 10:43 巴拉巴拉程序猿 Views(869) Comments(0) Diggs(0)