Commit 3cbb8d59 by BellCodeEditor

save project

parent 59e5f2f2
Showing with 20 additions and 0 deletions
import os
txt_list=[]
filelist=os.listdir("C:\\Users\\new-user\\Desktop\\file")
for i in filelist:
if i[-4:]==".txt":
txt_list.append(i)
\ No newline at end of file
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((420,540))
music1=pygame.mixer.Sound("歌曲1.wav")
music2=pygame.mixer.Sound("歌曲2.wav")
music1.play()
music2.play()
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit(8)
\ 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