Python 获取歌曲详细信息 歌手 专辑 时长
发布日期:2021-06-24 15:21:57 浏览次数:2 分类:技术文章

本文共 838 字,大约阅读时间需要 2 分钟。

from tinytag import TinyTagtag = TinyTag.get('E:\\KwDownload\\song\\G.E.M.邓紫棋-泡沫.mp3')print(tag.artist)print(tag.duration)print(tag.album)print(tag.title)'''tag.album         # album as string            专辑tag.albumartist   # album artist as string     作者tag.artist        # artist name as string      专辑tag.audio_offset  # number of bytes before audio data beginstag.bitrate       # bitrate in kBits/stag.disc          # disc numbertag.disc_total    # the total number of discs  tag.duration      # duration of the song in seconds歌曲时长tag.filesize      # file size in bytestag.genre         # genre as stringtag.samplerate    # samples per secondtag.title         # title of the song              标题tag.track         # track number as stringtag.track_total   # total number of tracks as stringtag.year          # year or data as string'''

在这里插入图片描述

在这里插入图片描述

转载地址:https://blog.csdn.net/weixin_33595571/article/details/109590459 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Python 读写xls表格文件
下一篇:获取歌曲信息歌曲详细信息

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月15日 20时17分55秒