Commit ea7f2eb8 by BellCodeEditor

auto save

parent cc0b11a4
Showing with 15 additions and 5 deletions
import pygame
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((420,540))
music1 = pygame.mixer.Sound("歌曲2.wav")
music1.play()
music1_leng
\ No newline at end of file
...@@ -77,7 +77,7 @@ while True: ...@@ -77,7 +77,7 @@ while True:
if click % 2 == 0: if click % 2 == 0:
click += 2 click += 2
else: else:
click += 1 click += 1
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 1
...@@ -87,10 +87,9 @@ while True: ...@@ -87,10 +87,9 @@ while True:
pygame.mixer.music.play() pygame.mixer.music.play()
music1 = pygame.mixer.Sound(path + "\\" + music_list[num]) music1 = pygame.mixer.Sound(path + "\\" + music_list[num])
print(music1) music_len = music1.get_length()
music_lenght = music1.get_lenght() music_len = int(music_len)
music_lenght = int(music_lenght)
#歌曲播放进度时间 #歌曲播放进度时间
......
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