Commit b9757054 by BellCodeEditor

auto save

parent 7ef86e5f
Showing with 4 additions and 1 deletions
import pygame
from pygame import locals
import os
pygame.init() # 初始化
# 创建窗口
......@@ -13,8 +14,10 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮
# 载入音乐
music_list=["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.oog"]
=["歌曲1.wav","歌曲2.wav","歌曲3.wav","歌曲4.oog"]
num=-1
volume = 0.2
pygame.mixer.music.set_volume(volume) # 初始播放音量
click = 0
......
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