Python の素 #list: list()
‖記事一覧‖ Python.use(better) #fundamental《Python3.1》
Python の素 〜 Python 弾丸ツアー:時短プログラミング生活のすすめ 〜
《著》森こねこ、後藤いるか、小粒ちゃん@湘南組《監修》タマゴ倶楽部
第1版♪2000/05/22 ● 第2版♪2003/05/30 ● 第3版♪2009/02/14
|関連記事|
list: 組み込み関数
>>> list()
[]
引数を省略すると、空のリストが得られます。
>>> list(1) Traceback (most recent call last): File "", line 1, in list(1) TypeError: 'int' object is not iterable
反復可能でないオブジェクトを、引数には指定できません。
>>> list(1,2) Traceback (most recent call last): File "", line 1, in list(1,2) TypeError: list() takes at most 1 argument (2 given)
引数は、1つまでしか指定できません。
↑TOP
》作業中です《