def transTimeAxis(stringTime):
strSec = stringTime.split(".")[0]
strMillSec = stringTime.split(".")[1]
intSec = int(strSec)
m, s = divmod(intSec, 60)
h, m = divmod(m, 60)
resSec = str.format("%02d:%02d:%02d" % (h, m, s))
res = resSec + "," + strMillSec
return res
python AudioRegion时间轴转换
最新推荐文章于 2023-07-24 23:15:00 发布