2008-01-10 Python で配列変数を使う array.py a = [1, 2, 3] print a 変数の一部分を表示。 添え字がゼロ始まりなのは他の言語と一緒。 array2.py a = [1, 2, 3, 4, 5] print a[ 2 ]