1 2 3
fn = 'esta1seg0831a.txt' estacion = '2016-%s-%s' % (fn[8:10], fn[10:12]) print (estacion)
1
2016-08-31