Python写的MP3播放器 mp3play

openkk 8年前
     mp3play 是一个用 Python 开发的 MP3 播放器,界面非常简单,无需安装其他的模块。可以嵌入到应用程序中以至此MP3音乐播放。使用示例:    <br />    <pre class="brush:python; toolbar: true; auto-links: false;">import mp3play  filename = r'C:\Documents and Settings\Michael\Desktop\music.mp3' mp3 = mp3play.load(filename)  mp3.play()  # Let it play for up to 30 seconds, then stop it. import time time.sleep(min(30, mp3.seconds())) mp3.stop()</pre>    <br />    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1325062469921" target="_blank">http://www.open-open.com/lib/view/home/1325062469921</a></p>