Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson1_2
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
4dcb3bfa
authored
Sep 15, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bf1f7e37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletions
__pycache__/log.cpython-37.pyc
log.py
snake.py
__pycache__/log.cpython-37.pyc
View file @
4dcb3bfa
No preview for this file type
log.py
View file @
4dcb3bfa
...
...
@@ -24,7 +24,10 @@ class log:
for
i
in
self
.
log
:
return_r
=
return_r
+
i
return_r
=
return_r
+
sep
return
return_r
[
0
:
len
(
return_r
)
-
len
(
sep
)]
try
:
return
return_r
[
0
:
len
(
return_r
)
-
len
(
sep
)]
except
:
return
""
if
__name__
==
"__main__"
:
print
(
'log 1.0.0
\n
Hello from the log community.'
)
\ No newline at end of file
snake.py
View file @
4dcb3bfa
...
...
@@ -18,6 +18,8 @@ food = pg.image.load("apple.png")
win_log
.
att_log
(
"素材创建"
,
"成功"
)
print
(
win_log
.
all_logvul
())
win_log
.
cutall_log
()
print
(
win_log
.
all_logvul
())
while
True
:
for
event
in
pg
.
event
.
get
():
...
...
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