Error and music written in Python [duplicate]

0

IwanttoplayasonginpythonbutwhenIdragittomyprojectitgets"written", how can I do it? (I'm new to python)

    
asked by anonymous 12.12.2017 / 01:23

1 answer

1

Good evening,

You can listen to music with the help of the pygame library as well as other solutions. Your song should be in the same directory as the file

import pygame

pygame.init () pygame.mixer.music.load ('myMusica.mp3') pygame.mixer.music.play () pygame.event.wait ()

    
12.12.2017 / 01:40