2001-10-01から1ヶ月間の記事一覧

配列の各要素に先頭から順に 1,2,3,4,5 を代入して表示

明解C言語 入門編 > 5. 配列 > 配列の各要素に先頭から順に 1,2,3,4,5 を代入して表示 Python # coding: Shift_JIS score = range(5) print "点数1 = %d" % score[0] print "点数2 = %d" % score[1] print "点数3 = %d" % score[2] print "点数4 =…