Commit 8793740e by BellCodeEditor

save project

parent 18d49384
Showing with 9 additions and 0 deletions
import os
import pygame
from pygame import locals
......@@ -21,6 +22,11 @@ click = 0
play_button = stop_img
num=-1
music_list=["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.ogg"]
path=("C:\\Users\huawei\Desktop")
filelist=os.listdir(path)
for i in filelist:
if i[-4:]==".wav" or i[-4:]==".oog":
music_list.append(i)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
import os
import os
path=("C:\\Users\huawei\Desktop")
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