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) ]]    

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -