Answers for "python print 2d array as table"

1

python print 2d array as table

import numpy as np
print(np.matrix(A))
Posted by: Guest on March-02-2020
0

python print 2d array as table

for row in A:
    for val in row:
        print '{:4}'.format(val),
    print
Posted by: Guest on March-20-2020

Python Answers by Framework

Browse Popular Code Answers by Language