'00', 'minutes': '04', 'seconds': '38.66'}
>>> float(a['hours']) * 3600 + float(a['minutes']) * 60 + float(a['seconds'])
278.65999999999997
>>> float(a['hours']) * 3600 + float(a['minutes']) * 60 + float(a['seconds']) * 1
278.65999999999997
>>> float(a['hours']) * 3600
0.0
>>> float(a['hours']) * 3600 + float(a['minutes']) * 60
240.0
>>> float(a['seconds']) * 1
38.66
>>> float(a['hours']) * 3600 + float(a['minutes']) * 60 + float(a['seconds']) * 1
278.65999999999997
Поискал за тебя в гугле :) Вдруг кому понадобится https://ru.stackoverflow.com/questions/417453/%d0%92%d1%8b%d1%87%d0%b8%d1%81%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f-%d0%bd%d0%b0-%d1%87%d0%b8%d1%81%d0%bb%d0%b0%d1%85-%d1%81-%d0%bf%d0%bb%d0%b0%d0%b2%d0%b0%d1%8e%d1%89%d0%b5%d0%b9-%d1%82%d0%be%d1%87%d0%ba%d0%be%d0%b9-%d0%bd%d0%b5-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0%d1%8e%d1%82
Обсуждают сегодня