Commit 73393ed6 authored by Taddeus Kroes's avatar Taddeus Kroes

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

parent 7b1845e9
from numpy import array, zeros 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): def add(x, y):
global m global m
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment