Skip to content

Commit 80f2e67

Browse files
authored
Create musicpython.py
1 parent c2b61bd commit 80f2e67

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

python-tutorials/musicpython.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import pygame
2+
3+
pygame.mixer.init()
4+
pygame.mixer.music.load("musica.mp3") #nome do seu arquivo de musica
5+
pygame.mixer.music.play()
6+
7+
# para parar o arquivo rodando digite CTRL+C
8+
# ou crie essa function para = input('Digite alguma letra')

0 commit comments

Comments
 (0)