Commit aa2b969e by BellCodeEditor

save project

parent 9b63bc9a
Showing with 6 additions and 4 deletions
......@@ -13,11 +13,13 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
m=['歌曲1.wav','歌曲2.wav','歌曲3.wav','歌曲4.ogg"]
p='C:\\Users\\Administrator\\Desktop\\1111"
m=[]
p="C:\\Users\\Administrator\\Desktop\\1111"
f=os.listdir(p)
for i in f:
if i[-4]-==".wav"
if i[-4]-==".wav":
m.append(i)
n=-1
volume = 0.2
......@@ -60,7 +62,7 @@ while True:
n+=1
if n>len(m)-1:
n=0
pygame.mixer.music.load(m[n]) # 载入音乐
pygame.mixer.music.load(p="\\"+m[n]) # 载入音乐
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