Commit a071cfa2 by BellCodeEditor

save project

parent 430030da
Showing with 8 additions and 0 deletions
...@@ -71,3 +71,10 @@ if pygame.mixer.music.get_busy() == False: ...@@ -71,3 +71,10 @@ if pygame.mixer.music.get_busy() == False:
num = 0 num = 0
pygame.mixer.music.load(music_[num]) pygame.mixer.music.load(music_[num])
pygame.mixer.music.play() 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