Utilisation simple de plusieurs listes
nlist.py
# -*- coding: utf-8 -*-
from nlist import NList
lis = NList([[1, 2], [3, 4]])
lis[1, 0] = 42
print (lis.index(42))
# (1, 0)
lis2 = NList(shape=(2, 3))
lis2[1, 2] = 66
print (lis2)
# NList([[None, None, None], [None, None, 66]], shape=(2, 3))
Recommended Posts