Commit ee4b8773 by BellCodeEditor

save project

parent 8926d8f1
Showing with 3 additions and 2 deletions
......@@ -80,8 +80,9 @@ while True:
num = 0
pygame.mixer.music.load(path + "\\"+music_list[num])
pygame.mixer.music.play() # 播放音乐
music1 = pygame.mixer.Sound(path + "\\" + music_list[num])
music_length = music1.get_length()
music_length = int(music_length)
# 歌曲播放进度时间
play_time = pygame.mixer.music.get_pos()
play_time = int(play_time/1000)
......
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