Commit 4cc56d2b by BellCodeEditor

save project

parent 0572d506
Showing with 6 additions and 0 deletions
import pygame
import os
from pygame import locals
pygame.init() # 初始化
......@@ -13,6 +14,11 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
music_list=['byj.mp3','128.mp3','yes.mps','airuhuo.mp3']
path = 'D:\\音频文件'
filelist = os.listdir(path)
for i in filelist:
if i[-4:] == 'mp3':
music_list.append(i)
num = -1
click=0
......
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