是否有一种简单的内置方法将2D Python列表打印为2D矩阵?
所以这:
[["A", "B"], ["C", "D"]]
会变得像
A B C D
我找到了pprint模块,但它似乎没有做我想要的.
python matrix
matrix ×1
python ×1