import datetime
def turn_second(t):
h,m,s = t.split(':')
return str(int(datetime.timedelta(hours=int(h),minutes=int(m),seconds=int(s)).total_seconds()))
标签:int,return,timedelta,MM,seconds,datetime,hours,SS,HH
来源: https://www.cnblogs.com/liyiyu/p/16267735.html