Commit 628f4bd1 by BellCodeEditor

save project

parent d6ffe2b6
Showing with 3 additions and 3 deletions
import pygame
inport os
import os
from pygame import locals
pygame.init() # 初始化
......@@ -15,8 +15,8 @@ logo_img = pygame.image.load('logo.png') # 下一曲按钮
music_list=[]
path="C:\\Users\\Administrator\\Desktop\\test"
filelist=os.listdir(path)
if i in filelist:
if i[-4:]==".wav" or i[-4:]==".ogg"
for i in filelist:
if i[-4:]==".wav" or i[-4:]==".ogg":
music_list.append(i)
# 载入音乐
......
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