Commit a071cfa2 by BellCodeEditor

save project

parent 430030da
Showing with 9 additions and 2 deletions
......@@ -70,4 +70,11 @@ if pygame.mixer.music.get_busy() == False:
if num>len(music_list)-1:
num = 0
pygame.mixer.music.load(music_[num])
pygame.mixer.music.play()
\ No newline at end of file
pygame.mixer.music.play()
music_ list = ['歌曲1.way','歌曲2.way','歌曲3.way','歌曲4.way']
path = "C:\\Users\\bellcode\\Desktop\\test"
filelist = os.listdir(path)
for i in filelist:
if i[-4:] == ".wav" or i[-4:] == ".ogg"
\ No newline at end of file
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