Commit 82200fc1 by BellCodeEditor

save project

parent 4b47c6a2
Showing with 3 additions and 2 deletions
......@@ -54,8 +54,9 @@ while True:
if pygame.mixer.music.get_busy() == False:
for i in files:
if i[-4:]==".mp3" or ".wav" or ".ogg":
pygame.mixer.music.load(i)
print(i)
if i[-4:]==".mp3" or i[-4:]==".wav" or i[-4:]==".ogg":
pygame.mixer.music.load("C:\\Users\\Administrator\\Desktop\\新建文件夹\\"+i)
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