Commit e8889cf5 by BellCodeEditor

save project

parent d484fe00
Showing with 5 additions and 3 deletions
......@@ -15,9 +15,11 @@ logo_img = pygame.image.load('logo.png') # 下一曲按钮
num=-1
music=[]
music=[]
www="C:\Users\46435\Desktop\test"
mightest=os.listdir(www)
mightest=os.listdir("C:\\Users\\46435\\Desktop\\test")
for might in mightest:
print(might)
if might[-4:] ==".wav" or might[-4:] ==".ogg":
......@@ -62,7 +64,7 @@ while True:
num+=1
if num > len(music)-1:
num=0
pygame.mixer.music.load(music[num])
pygame.mixer.music.load(www+"\\"+music[num])
pygame.mixer.music.play()
# 绘制画面
......
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