Commit cfe4fcba by BellCodeEditor

save project

parent 9fd5d983
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
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment