Commit 7b1845e9 authored by Taddeus Kroes's avatar Taddeus Kroes

Source code cleanup.

parent ba65b060
from numpy import array, zeros from numpy import array, zeros
#m = array([[131, 673, 234, 103, 18 ], m = array([map(int, l.split(',')) for l in open('matrix.txt', 'r').readlines()])
# [201, 96 , 342, 965, 150],
# [630, 803, 746, 422, 111],
# [537, 699, 497, 121, 956],
# [805, 732, 524, 37 , 331]])
f = open('matrix.txt', 'r')
m = array([map(int, l.split(',')) for l in f.readlines()])
f.close()
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