Commit 7646eb39 by BellCodeEditor

save project

parent 24e5879d
Showing with 2 additions and 2 deletions
...@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮 ...@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 下一曲按钮
display_fonts=pygame.font.Font('neuropol.ttf',18) display_fonts=pygame.font.Font('neuropol.ttf',18)
music_list = [] music_list = []
path = "C:\\Users\\student\\Desktop\\abc" path = "C:\\Users\\Student\\Desktop\\abc"
filelist = os.listdir(path) filelist = os.listdir(path)
num = -1 num = -1
for i in filelist: for i in filelist:
...@@ -88,7 +88,7 @@ while True: ...@@ -88,7 +88,7 @@ while True:
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
music1 = pygame.mixer.Sound(path + "//" + music_list[num]) music1 = pygame.mixer.Sound(path + "//" + music_list[num])
sj =
# 绘制画面 # 绘制画面
sj = pygame.mixer.music.get_pos() sj = pygame.mixer.music.get_pos()
......
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