, array . Python array, , array.array ( 1-D ); , numpy, numpy.array, , , , numpy, , ; list dict. , - , , , (, , , , DO , "", , ..).
csv , . , coords 5 , , ints, . ...
, , - , - ? , , - , ? , , , , ; ( / ).
: (0, 1, 2,...), ( btw, 0, 1, 2,...)? , - , , . , : , - , ? , , , .
dict , : , , , . ( ), , 3 .
...:
def make_container(coords):
result = dict()
for s, d, x, y, z in coords:
key = int(s), int(d)
value = float(x), float(y), float(z)
result[key] = value
return result
def (.. , , ), . make_container , ; ,
d = make_container(coords)
print d[0, 0]
x, y, z dp 0 sim 0, ( , sim/dp ). dicts , .
print d.get((0, 0))
(, do - , , get ), None, , sim/dp (0, 0).
, (, , , , ), , ( - , !), - ! -)