Commit ea7f2eb8 by BellCodeEditor

auto save

parent cc0b11a4
Showing with 13 additions and 3 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
......@@ -88,9 +88,8 @@ while True:
music1 = pygame.mixer.Sound(path + "\\" + music_list[num])
print(music1)
music_lenght = music1.get_lenght()
music_lenght = int(music_lenght)
music_len = music1.get_length()
music_len = int(music_len)
#歌曲播放进度时间
......
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