LoginSignup
0
1

More than 5 years have passed since last update.

めざせpythonライブラリマスター (11)nlist

Posted at

【ライブラリ説明】

 多重リストを簡単操作

【プログラム】

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))

【参考サイト】

 pypi
 github
 document

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1