Commit aa1ce1b3 by BellCodeEditor

save project

parent a325f691
Showing with 2 additions and 2 deletions
......@@ -15,7 +15,7 @@ logo_img = pygame.image.load('logo.png') # 中间logo图
basic_font = pygame.font.Font('neuropol.ttf', 14) # 字体
music_list = []
path = "D:\haogang\python\python_training\python体系A\P2编程设计\P2-6音乐播放器(三)\解压代码\歌曲总时长-8\level3-lesson6-diy4"
path = "C:\\Users\\bellcode\\Desktop\\test"
filelist = os.listdir(path)
for i in filelist:
if i[-4:] == ".ogg" or i[-4:] == ".wav":
......@@ -93,7 +93,7 @@ while True:
# 歌曲播放进度时间
play_time = pygame.mixer.music.get_pos()
play_time = int(play_time/1000) # 取整
play_time = int(play_time/1000)
play_m = play_time//60 # 分
play_s = play_time % 60 # 秒
......
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