Commit c77d3eaf by BellCodeEditor

auto save

parent f9447588
Showing with 1 additions and 5 deletions
...@@ -26,7 +26,7 @@ path = "C:\\Users\\tang\\Desktop\\test" ...@@ -26,7 +26,7 @@ path = "C:\\Users\\tang\\Desktop\\test"
filelist = os.listdir(path) filelist = os.listdir(path)
#筛选出音频的文件,添加到播放列表里 #筛选出音频的文件,添加到播放列表里
for i in filelist: for i in filelist:
if i[-4:] == ".mp3" or i[-4:] == ".mav" or i[-4:] == ".ogg": if i[-4:] == ".mp3" or i[-4:] == ".wav" or i[-4:] == ".ogg":
music_list.append(i) music_list.append(i)
...@@ -110,10 +110,6 @@ while True: ...@@ -110,10 +110,6 @@ while True:
click = 0 click = 0
play_button = stop_img play_button = stop_img
#重复播放音乐 #重复播放音乐
if pygame.mixer.music.get_busy() == False: #判断音乐是否被播放 if pygame.mixer.music.get_busy() == False: #判断音乐是否被播放
music_num+=1 music_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