Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson4_diy2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e367d9cf
authored
Nov 15, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
f15d42ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
hrdgsjfkktukt.py
my_music.py
hrdgsjfkktukt.py
0 → 100644
View file @
e367d9cf
芸術とは爆発である
私の青春は後悔していない
\ No newline at end of file
my_music.py
View file @
e367d9cf
...
...
@@ -17,9 +17,6 @@ while True:
for
event
in
pygame
.
event
.
get
():
if
event
.
type
==
locals
.
QUIT
:
exit
()
if
pygame
.
mixer
.
music
.
get_busy
()
==
False
:
pygame
.
mixer
.
music
.
play
volume
=
0.2
pygame
.
mixer
.
music
.
set_volume
(
volume
)
...
...
@@ -41,17 +38,16 @@ while True:
volume
=
0
pygame
.
mixer
.
music
.
set_volume
(
volume
)
if
event
.
type
==
locals
.
MOUSEBUTTONDOWN
:
if
event
.
button
==
1
:
x
,
y
=
event
.
pos
if
x
>
270
and
x
<
370
and
y
>
350
and
y
<
450
:
click
+=
1
if
click
%
2
==
0
:
play_button
=
stop_img
click
+=
1
if
click
%
2
==
0
:
pygame
.
mixer
.
music
.
unpause
()
start
=
stop_img
else
:
play_button
=
play_img
pygame
.
mixer
.
music
.
pause
()
start
=
play_img
if
volume
<=
0
:
volume
=
0
if
pygame
.
mixer
.
music
.
get_busy
()
==
False
:
pygame
.
mixer
.
music
.
play
()
...
...
@@ -63,4 +59,4 @@ while True:
screen
.
blit
(
last_img
,
(
120
,
350
))
# 上一曲
screen
.
blit
(
next_img
,
(
420
,
350
))
# 下一曲
# 刷新画面
pygame
.
display
.
up
pygame
.
display
.
up
date
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment