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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -