diff --git a/iphone.ogg b/iphone.ogg new file mode 100644 index 0000000..c6ea0c2 Binary files /dev/null and b/iphone.ogg differ diff --git a/my_music.py b/my_music.py index 0021603..26b742f 100644 --- a/my_music.py +++ b/my_music.py @@ -11,7 +11,9 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮 last_img = pygame.image.load('last.png') # 上一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 中间logo -pygame.mixer.music.load('歌曲4.ogg') +pygame.mixer.music.load('歌曲4.ogg') #载入音乐 + + while True: for event in pygame.event.get(): @@ -34,7 +36,7 @@ while True: pygame.mixer.music.set_volume(volume) if event.key == locals.K_DOWN: volume -= 0.1 - if volume < 0 <or volume==0: + if volume < 0 or volume==0: volume = 0 pygame.mixer.music.set_volume(volume) if event.type == locals.MOUSEBUTTONDOWN: diff --git "a/\346\255\214\346\233\2621.wav" "b/\346\255\214\346\233\2621.wav" new file mode 100755 index 0000000..a8ceb39 Binary files /dev/null and "b/\346\255\214\346\233\2621.wav" differ diff --git "a/\346\255\214\346\233\2622.wav" "b/\346\255\214\346\233\2622.wav" new file mode 100755 index 0000000..2d8ada5 Binary files /dev/null and "b/\346\255\214\346\233\2622.wav" differ diff --git "a/\346\255\214\346\233\2623.wav" "b/\346\255\214\346\233\2623.wav" new file mode 100755 index 0000000..e762ca1 Binary files /dev/null and "b/\346\255\214\346\233\2623.wav" differ diff --git "a/\346\255\214\346\233\2624.ogg" "b/\346\255\214\346\233\2624.ogg" new file mode 100755 index 0000000..4982a1d Binary files /dev/null and "b/\346\255\214\346\233\2624.ogg" differ