Commit a090add7 by BellCodeEditor

save project

parent cc4a186b
Showing with 4 additions and 3 deletions
......@@ -16,14 +16,15 @@ logo_img = pygame.image.load('logo.png') # 中间logo
#载入列表
#music_list = ["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.ogg"]
music_list = [""]
music_list = []
num = -1
path = "C:\\Users\\Administrator\\Desktop\\test"
filelist = os.listdir(path)
print(filelist)
for i in filelist:
if i[-4:] == ".wav" or i[-4] == ".ogg":
music_list.append
if i[-4:] == ".wav" or i[-4:] == ".ogg":
music_list.append(i)
print(music_list)
volume=0.2
pygame.mixer.music.set_volume(volume)
click=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