📜  打印矩阵 eleme - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:47.796000             🧑  作者: Mango

代码示例1
#Exemple:
M=[[1,2,3],[4,5,6],[7,8,9]]
#Converting Matrix elements to string (join() only work with str Matrix)
M=list(map(lambda i:[str(_) for _ in i],M))
[print(' '.join(i)) for i in M]