Commit 5d7026de by BellCodeEditor

save project

parent 9aa10bce
Showing with 7 additions and 3 deletions
......@@ -13,8 +13,12 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
# 载入音乐
fillelist = ["歌曲1.wav","歌曲2.wav"]
music_list = []
path = "C:\\Users\\CDLX\\Desktop\\test"
fillelist = os.listdir(parth)
for i in fillelist:
if i{-4:} == ".ogg" or i{-4:} == ".wav":
music_list.append(i)
pygame.mixer.music.load('歌曲4.ogg') # 载入音乐
......@@ -41,7 +45,7 @@ while True:
pygame.mixer.music.set_volume(volume)
# 按下鼠标
if event.type == locals.MOUSEBUTTONDOWN:
if event.type == locals.MOUSEBUTTONDOWN:
fillelist = ["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.ogg"]
num = 1
......
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