Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson5_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
b7e6b30f
authored
Dec 18, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bb2517a0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
ccd.py
urefiwe。扩大为io。。.py
ccd.py
View file @
b7e6b30f
...
...
@@ -22,7 +22,7 @@ click = 0
play_button
=
stop_img
baba
=
[]
path
=
'C:
\\
Users
\\
Windows 7
\\
Desktop
\\
新建文件夹 (2)
'
path
=
'C:
\\
Users
\\
Administrator
\\
Desktop新建文件夹
'
filelist
=
os
.
listdir
(
path
)
for
i
in
filelist
:
if
i
[
-
4
:]
==
'.wav'
or
i
[
-
4
:]
==
'.ogg'
:
...
...
@@ -61,6 +61,15 @@ while True:
play_button
=
play_img
pygame
.
mixer
.
music
.
pause
()
if
x
>
120
and
x
<
220
and
y
>
350
and
y
<
400
:
num
-=
1
if
num
<
0
:
num
=
len
(
music_list
)
-
1
pygame
.
mixer_music
.
load
(
path
+
"
\\
"
+
music_list
[
num
])
pygame
.
mixer_music
.
play
()
click
=
0
if
pygame
.
mixer
.
music
.
get_busy
()
==
False
:
num
+=
1
if
num
>
len
(
baba
)
-
1
:
...
...
urefiwe。扩大为io。。.py
0 → 100644
View file @
b7e6b30f
++ "b/urefiwe\343\200\202\346\211\251\345\244\247\344\270\272io\343\200\202\343\200\202.py"
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