Commit b1441fdf by BellCodeEditor

save project

parent 4c3fbb6b
Showing with 12 additions and 1 deletions
......@@ -11,7 +11,18 @@ last_img = pygame.image.load('last.png')
next_img = pygame.image.load('next.png')
logo_img = pygame.image.load('logo.png')
pygame.mixer.music.load('歌曲4.ogg')
music_list = []
path = "C:\\Users\\Administrator\\music"
filelist = os.listdir(path)
for i in filelist:
if i[-4:] ==".ogg"or i[-4:] == "wav":
music_list.append(i)
num = -1
volume = 0.2
pygame.mixer.music.set_volume(volume)
click = 0
play_button = stop_img
while True:
for event in pygame.event.get():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment