Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson7_diy1
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
cfe4fcba
authored
Feb 15, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
9fd5d983
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
0 deletions
boy.py
kldsfugke.py
进口红酒风格豪放的已经给他个机会哭就发给。客家话好几个,了几句话就过来看了会哭。py
boy.py
0 → 100644
View file @
cfe4fcba
import
pygame
from
pygame
import
locals
screen
=
pygame
.
display
.
set_mode
((
1000
,
600
))
pygame
.
display
.
set_caption
(
"bellcode"
)
while
True
:
for
event
in
pygame
.
event
.
get
():
if
event
.
type
==
locals
.
QUIT
:
exit
()
if
event
.
type
==
locals
.
KEYDOWN
:
if
event
.
key
==
locals
.
K_SPACE
:
jumpState
=
"up"
if
jumpState
==
"up"
:
if
y
>
150
:
y
-=
5
else
:
jumpState
=
"down"
if
jumpState
==
"down"
:
if
y
<
400
:
y
+=
5
else
:
jumpState
=
"runing"
wokong
=
hero
[
index
]
if
jumpState
==
"runing"
:
index
+=
1
if
index
>=
5
:
index
=
0
\ No newline at end of file
kldsfugke.py
0 → 100644
View file @
cfe4fcba
import
pygame
cacti
=
pygame
.
image
.
load
(
"cacti.png"
)
rect
=
cacti
.
get_rect
()
print
(
rect
.
x
)
print
(
rect
.
y
)
print
(
rect
.
width
)
print
(
rect
.
height
)
\ No newline at end of file
进口红酒风格豪放的已经给他个机会哭就发给。客家话好几个,了几句话就过来看了会哭。py
0 → 100644
View file @
cfe4fcba
for a in range(0,1001):
for a in range(0,1001):
for b in range(0,1001):
for c in range(0,1001):
if a**2 + b**==c** and a+b+c ==1000
print("a,b,c的值分别为:" ,a,b,
impart time
starint_tiame =time()
print("开始时间为:",starint_tiame)
for a in range(0,1001):
for b in range(0,1001):
for c in range(0,1001):
if a**2 + b**==c** and a+b+c ==1000
print("a,b,c的值分别为:" ,a,b,c
hgjhgmgj
ykgjuhjk,jk,j.j,.h,k.jh,gjhg,
ykiljihulo.ui.oiuo/u''lj
hjk,jg.hgu,.h.jhgy;lhil/jlhii
\ 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