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
377b5616
authored
Sep 15, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b082f57c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
__init__.py
__pycache__/log.cpython-37.pyc
log.py
snake.py
__init__.py
deleted
100644 → 0
View file @
b082f57c
__pycache__/log.cpython-37.pyc
View file @
377b5616
No preview for this file type
log.py
View file @
377b5616
# constant
NEWLOG
=
{}
NEWLOGNUM
=
0
NEWLOGOI
=
0
class
log
:
def
__init__
(
self
):
self
.
log
=
{}
self
.
lognum
=
0
self
.
log
=
NEWLOG
self
.
lognum
=
NEWLOGNUM
self
.
logoi
=
NEWLOGOI
print
(
'log 1.0.0
\n
Hello from the log community.'
)
def
att_log
(
self
,
log_key
,
log_word
):
...
...
@@ -9,4 +15,7 @@ class log:
self
.
log
[
log_key
]
=
log_word
def
cutall_log
(
self
):
self
.
log
=
{}
\ No newline at end of file
self
.
log
=
{}
def
seek_log
(
self
):
pass
\ No newline at end of file
snake.py
View file @
377b5616
...
...
@@ -12,4 +12,4 @@ win_log = log()
while
True
:
for
event
in
pg
.
event
.
get
():
if
event
.
type
==
locals
.
QUIT
:
exit
()
exit
()
\ No newline at end of file
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