Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson10_diy01
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
a458c61d
authored
Apr 21, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
76968286
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
289 additions
and
0 deletions
ftyfdtyweuydfwtdfdyw
人机.py
ftyfdtyweuydfwtdfdyw
0 → 100644
View file @
a458c61d
name=input("勇于挑战的创造师你叫什么呀")
print(name+",你是最棒的创造师耶")
\ No newline at end of file
人机.py
0 → 100644
View file @
a458c61d
import
pygame
import
pygame
from
pygame
import
locals
pygame
.
init
()
score
=
0
grid_size
=
20
grid_num_width
=
15
grid_num_height
=
25
FPS
=
30
screen
=
pygame
.
display
.
set_mode
((
460
,
500
))
pygame
.
display
.
set_caption
(
"俄罗斯方块"
)
clock
=
pygame
.
time
.
Clock
()
background
=
pygame
.
image
.
load
(
'bg.png'
)
font
=
pygame
.
font
.
Font
(
'STKAITI.TTF'
,
60
)
while
True
:
for
event
in
pygame
.
event
.
get
():
if
event
.
type
==
locals
.
QUIT
:
exit
()
screen
.
blit
(
background
,(
0
,
0
))
pygame
.
draw
.
rect
(
screen
,(
255
,
0
,
0
)
pygame
.
draw
.
rect
(
screen
,(
255
,
255
,
255
),
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