Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson4_diy4
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
ad38ee6b
authored
Mar 03, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b8bab2e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
1.py/1.py
my_music.py
1.py/1.py
0 → 100644
View file @
ad38ee6b
tuplel
=
(
100
,
200
)
x
,
y
,
z
=
tuplel
print
(
'x的值是:'
,
x
)
print
(
'y的值是:'
,
y
)
\ No newline at end of file
my_music.py
View file @
ad38ee6b
...
...
@@ -35,13 +35,16 @@ while True:
a
=
0
if
event
.
type
==
locals
.
MOUSEBUTTONDOWN
:
tick
+=
1
if
tick
%
2
==
1
:
pygame
.
mixer
.
music
.
pause
()
b
=
play_img
else
:
pygame
.
mixer
.
music
.
unpause
()
b
=
stop_img
if
event
.
button
==
1
:
x
,
y
=
event
.
pos
if
x
>
270
and
x
<
370
and
y
>
330
and
y
<
430
:
tick
+=
1
if
tick
%
2
==
1
:
pygame
.
mixer
.
music
.
pause
()
b
=
play_img
else
:
pygame
.
mixer
.
music
.
unpause
()
b
=
stop_img
if
pygame
.
mixer
.
music
.
get_busy
()
==
False
:
pygame
.
mixer
.
music
.
play
()
...
...
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