首页 > 代码库 > mp3play 播放音乐

mp3play 播放音乐

#-*-coding:utf-8-*-
import pygame
import mp3play
import time
pygame.init()
#clip = mp3play.load(‘能不能.mp3‘)
clip = mp3play.load(‘http://upupyoyoyo.net/COFFdD0xMzY5NzM1OTU1Jmk9MTIxLjE1LjEzMC4xNTMmdT1Tb25ncy92Mi9mYWludFFDLzVjL2E3LzZiN2QyZjEwNzEzZTM5ZGI5ZDZiOGE2ODc4YmRhNzVjLm1wMyZtPTdkOThlNmM2ZTVkNTAwMzAzMmEwMGY3NzJhYWRkNmY0JnY9ZG93biZuPcqyw7S2vL/J0tQmcz27xs/+w/cmcD1z.mp3‘)
clip.play()
time.sleep(min(30, clip.seconds()))
clip.stop()

本文出自 “我是一只小小鸟” 博客,请务必保留此出处http://2242558.blog.51cto.com/2232558/1545311

mp3play 播放音乐