import eyed3
def main():
mp3 = '8200031001_13429822982_1_00163e086216990b11e82403f00d3d9a.mp3'
xx = eyed3.load(mp3)
print(u'时长为:{}秒'.format(xx.info.time_secs))
if __name__ == '__main__':
main()
import eyed3
def main():
mp3 = '8200031001_13429822982_1_00163e086216990b11e82403f00d3d9a.mp3'
xx = eyed3.load(mp3)
print(u'时长为:{}秒'.format(xx.info.time_secs))
if __name__ == '__main__':
main()
转载于:https://www.cnblogs.com/lianzhilei/p/8549069.html