Commit 721064a1 by BellCodeEditor

save project

parent 6210881a
Showing with 4 additions and 5 deletions
...@@ -55,12 +55,11 @@ while True: ...@@ -55,12 +55,11 @@ while True:
else: else:
play_button = play_img play_button = play_img
pygame.mixer.music.pause() # 次数增加 pygame.mixer.music.pause() # 次数增加
if x>120 and x<220 and y>350 ang y<450
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num+=1 num-=3
if num>len(p)-1: if num<0
num=0 num=
pygame.mixer.music.load("C:\\桌面\\txt"+"\\"+p[num]) pygame.mixer.music.load("C:\\桌面\\txt"+"\\"+p[num])
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