Commit fec799fe by BellCodeEditor

save project

parent b19d02d3
Showing with 2 additions and 2 deletions
......@@ -16,7 +16,7 @@ logo_img = pygame.image.load('logo.png') # 下一曲按钮
music_list = []
path = "C:\\Users\\bellcode\\Desktop\\test"
filelist = os.listdir(path)
num = -1
music_list = []
for i in filelist:
if i[-4:] == ".ogg" or i[-4:] == ".wav":
music_list.append(i)
......@@ -27,7 +27,7 @@ volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
play_button = stop_img
-
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
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