Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson1_4
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
93c8688b
authored
Dec 02, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
61e311b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
1
1.py
snake.py
uhvuvhuv.py
1
0 → 100644
View file @
93c8688b
1.py
0 → 100644
View file @
93c8688b
print
(
hex
(
45
))
#十进制转十六进制
print
(
bin
(
45
))
#十进制转二进制
snake.py
View file @
93c8688b
import
pygame
#导入pygame模块
import
pygame
pygame
.
init
()
#初始化
from
pygame
import
locals
screen
=
pygame
.
display
.
set_mode
((
660
,
440
))
#设置画布的大小
pygame
.
init
()
\ No newline at end of file
screen
=
pygame
.
display
.
set_mode
((
660
,
480
))
background
=
pygame
.
image
.
load
()
\ No newline at end of file
uhvuvhuv.py
View file @
93c8688b
...
@@ -4,8 +4,4 @@ for i in range(3):
...
@@ -4,8 +4,4 @@ for i in range(3):
for
j
in
range
(
3
):
for
j
in
range
(
3
):
arr
[
i
]
.
append
(
1
)
arr
[
i
]
.
append
(
1
)
for
i
in
arr
:
for
i
in
arr
:
print
(
i
)
print
(
i
)
for
i
in
range
(
3
):
\ No newline at end of file
for
j
in
range
(
3
):
print
(
arr
[
i
][
j
],
','
,
end
=
''
)
print
()
\ 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