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()

你可能感兴趣的:(python,播放音乐,mp3play)