Commit e22feb6c by BellCodeEditor

save project

parent 4af72c5c
Showing with 3 additions and 3 deletions
...@@ -12,7 +12,7 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮 ...@@ -12,7 +12,7 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮 last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 下一曲按钮
path = os.listdir("C:\\Users\\EDZ\\Desktop\\test") path = "C:\\Users\\EDZ\\Desktop\\test"
num=1 num=1
music_list = [] music_list = []
filelist = os.listdir(path) filelist = os.listdir(path)
...@@ -58,8 +58,8 @@ while True: ...@@ -58,8 +58,8 @@ while True:
num += 1 num += 1
if num >= len(music_list): if num >= len(music_list):
num=0 num=0
pygame.mixer.music.load(path+"\\"+music_list[num]) pygame.mixer.music.load(path+"\\"+music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
# 绘制画面 # 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景 screen.blit(bg_img, (0, 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