■
リストのsortとか
>>> mon_list = ['2005/1', '2005/9', '2005/2', '2003/8', '2005/8'] >>> mon_list ['2005/1', '2005/9', '2005/2', '2003/8', '2005/8'] >>> mon_list.sort() >>> mon_list ['2003/8', '2005/1', '2005/2', '2005/8', '2005/9']
書き方とか
>>> line = 'aa bb cc dd' >>> sp2 = line.split()[2] >>> sp2 'cc'
ASPN : Python Cookbook : Generate create table statements for MS Access tables. より(←内容とは関係ないとこで関心したりして)