有一个叫做Python-ID3的模块可以做到这一点。如果您在Debian /
Ubuntu盒子上,则其软件包名称为,
python-id3并且其网站上有示例代码:
from ID3 import *try: id3info = ID3('/some/file/moxy.mp3') print id3info id3info['TITLE'] = "Green Eggs and Ham" id3info['ARTIST'] = "Moxy Früvous" for k, v in id3info.items(): print k, ":", vexcept InvalidTagError, message: print "Invalid ID3 tag:", message
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)