Commit 8ac83652 by BellCodeEditor

save project

parent 528fa392
Showing with 8 additions and 1 deletions
import pygame
import os
filelist=os.listdir("C:\\Users\\makcoo\\Desktop\\sb")
from pygame import locals
pygame.init() # 初始化
......@@ -16,8 +18,13 @@ m=0.2
pygame.mixer.music.set_volume(m)
sb=0
cnm=play_img
nmd=["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.ogg"]
num=-1
nmd=[]
path="C:\\Users\\makcoo\\Desktop\\sb"
filelist=os.listdir(path)
for i in filelist:
if i[-4:]==".wav" or i[-4:]==".ogg":
nmd.append(i)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
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