This entry was posted on 水曜日, 8月 20th, 2008 at 13:08:22 and is filed under python. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


pythonでアルファベットリストを生成する
pythonでアルファベットリストを生成する
abc = [chr(x) for x in range(65, 91)] # Result: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] #
よく考えたら毎回生成しないでもいいのか…
Leave a Reply
