Commit 90e97a98 by BellCodeEditor

save project

parent 0ce70dad
Showing with 4 additions and 0 deletions
import pygame import pygame
from pygame import locals from pygame import locals
import os
pygame.init() # 初始化 pygame.init() # 初始化
# 创建窗口 # 创建窗口
...@@ -12,6 +13,7 @@ last_img = pygame.image.load('last.png') # 上一曲按钮 ...@@ -12,6 +13,7 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo logo_img = pygame.image.load('logo.png') # 中间logo
#pygame.mixer.music.load('歌曲3.wav') #pygame.mixer.music.load('歌曲3.wav')
#music = ['歌曲1.wav', '歌曲2.wav','歌曲3.wav','歌曲4.ogg']
music = ['歌曲1.wav', '歌曲2.wav','歌曲3.wav','歌曲4.ogg'] music = ['歌曲1.wav', '歌曲2.wav','歌曲3.wav','歌曲4.ogg']
ok = -1 ok = -1
volume = 0.3 volume = 0.3
...@@ -58,3 +60,4 @@ while True: ...@@ -58,3 +60,4 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
"C:\Users\admin\Music\my music"
\ No newline at end of file
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