Posts by Carlos Alberto Colonezi • 1 point
1 post
-
-2
votes5
answers9733
viewsA: playing mp3 files in Python
import pygame import os pygame.init() if os.path.exists('musica.mp3'): pygame.mixer.music.load('musica.mp3') pygame.mixer.music.play() pygame.mixer.music.set_volume(1) clock = pygame.time.Clock()…