Skip to content
Snippets Groups Projects
Commit 73393ed6 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

81: Changed map() to built-int numpy dtype keyword.

parent 7b1845e9
No related branches found
No related tags found
No related merge requests found
from numpy import array, zeros
m = array([map(int, l.split(',')) for l in open('matrix.txt', 'r').readlines()])
m = array([l.split(',') for l in open('matrix.txt', 'r').readlines()],
dtype=int)
def add(x, y):
global m
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment