python - How to convert a matrix of strings into a matrix of integers using comprehensions -
I have matrix [['1', '2'], ['3', '4']] I want to convert to a matrix of integer. Is there a way to understand this?
[[int (a), int (b) ]]
I have matrix [['1', '2'], ['3', '4']] I want to convert to a matrix of integer. Is there a way to understand this?
[[int (a), int (b) ]]
Comments
Post a Comment