Commit 51b02adf by BellCodeEditor

save project

parent c41bcb1d
Showing with 3 additions and 2 deletions
...@@ -53,8 +53,9 @@ while True: ...@@ -53,8 +53,9 @@ while True:
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
# 载入音乐 # 载入音乐
num+=1 num+=1
if : if num > len(filelist)-1:
num = 0
pygame.mixer.music.load(filelist[num])
pygame.mixer.music.load('歌曲4.ogg') # 载入音乐 pygame.mixer.music.load('歌曲4.ogg') # 载入音乐
pygame.mixer.music.play() pygame.mixer.music.play()
......
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