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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -