手机
当前位置:查字典教程网 >脚本专栏 >python >python实现定时播放mp3
python实现定时播放mp3
摘要:程序很简单,主要是mp3play模块的应用importmp3play,timefilename="ShouldItMatter.mp3"cl...

程序很简单,主要是 mp3play 模块的应用

import mp3play, time filename = "Should It Matter.mp3" clip = mp3play.load(filename) while 1: if time.localtime().tm_min % 30 == 0: clip.play() print "nStart to play" time.sleep(clip.seconds()) clip.stop() print "Stop" print '>', time.sleep(30) #暂停30秒(不是30分钟)

演示图:

python实现定时播放mp31

以上所述就是本文的全部内容了,希望大家能够喜欢。

【python实现定时播放mp3】相关文章:

使用python实现扫描端口示例

python 实现堆排序算法代码

python实现的一个p2p文件传输实例

python实现数通设备tftp备份配置文件示例

python实现apahce网站日志分析示例

python实现html转ubb代码(html2ubb)

python实现巡检系统(solaris)示例

python字符串替换示例

python实现ftp客户端示例分享

python回调函数的使用方法

精品推荐
分类导航