Python 播放MP3

 

http://www.cnblogs.com/xiaowuyi/archive/2012/06/15/2550338.html

import time
import pygame
file=r'tyj.mp3'
pygame.mixer.init()
print("播放音乐1")
track = pygame.mixer.music.load(file)

pygame.mixer.music.play()
time.sleep(10)
pygame.mixer.music.stop()

http://www.cnblogs.com/TeaIng-Index/p/4415060.html

 

posted @ 2017-02-28 20:49  tmjDD  阅读(188)  评论(0编辑  收藏  举报