>>> dt = '2009-02-15 21:00:08'
>>> dt
'2009-02-15 21:00:08'
>>> a = re.findall (r'\d+', dt)
>>> print a
['2009', '02', '15', '21', '00', '08']

偶是来骗分的:)