HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🥋
Pygame Lecture
/
🎼
002 music
🎼

002 music

import pygame as pg pg.init() 화면가로길이 = 600 화면세로길이 = 800 화면 = pg.display.set_mode((화면가로길이, 화면세로길이)) pg.mixer.music.load('a.mp3') pg.mixer.music.play() while True: for 이벤트 in pg.event.get(): if 이벤트.type == pg.QUIT: quit()