戯言SE

Python | リストのサイズを見つける方法

Python
2018.06.162018.07.18

iPython

In [1]: company = ['test3', 'test0', 'test1', 'test2', 'test3']

In [2]: len(company)
Out[2]: 5

In [3]: import sys

In [4]: sys.getsizeof(company)
Out[4]: 104

Python
ProgrammingPython
戯言SE

関連記事

Portfolio

Python | for文 – 基本文法

Python

Python | 空リストを作成する方法

Python

Python | 2つのリストを結合する方法

Portfolio

Python | 辞書を空にする方法

Python

Python | 重複した項目をリストから削除する方法

Portfolio

Python | for文 – continueとbreak

Python | リストが空であるかどうかをチェックする方法
Python | キーが辞書に含まれているかどうかを確認する方法
ホーム
Programming
Python
戯言SE
© 1997 戯言SE.
  • ホーム
  • トップ