Commit 6d6ea55a by BellCodeEditor

auto save

parent 75fbb4de
Showing with 46 additions and 23 deletions
++ "b/i\343\200\202py"
import pygame # # p=int(input('请输入半径:'))
from pygame import locals # # o=p*2
# 初始化pygame,为使用pygame做准备 # # z=o*3.14
pygame.init() # # m=p*(z/2)
p=pygame.image.load('bg.png') # # print('直径:'+str(o))
l=pygame.image.load('right.png') # # print('周长:'+str(z))
b=pygame.image.load('body.png') # # print('面积:'+str(
o=pygame.image.load('apple.png') import turtle
# 创建一个窗口 p=turtle.Pen()
s=pygame.display.set_mode((800,600)) a=int(input())
while True:
for event in pygame.event.get(): # p.speed(0)
# p.fillcolor('blue')
if event.type==locals.QUIT: # p.pu()
exit() # p.goto(0,-200)
s.blit(p,(0,0)) # p.pd()
s.blit(l,(240,120)) # p.circle(200)
s.blit(b,(210,120)) # p.pu()
s.blit(b,(180,120)) # p.goto(-100,50)
s.blit(b,(180,90)) # p.pd()
s.blit(o,(360,300)) # p.begin_fill()
pygame.display.update() # p.circle(20)
\ No newline at end of file # p.end_fill()
# p.pu()
# p.goto(100,50)
# p.pd()
# p.begin_fill()
# p.circle(20)
# p.end_fill()
# p.pu()
# p.goto(0,50)
# p.pd()
# p.circle(-50,steps=3)
# p.pu()
# p.goto(-150,-70)
# p.pd()
# p.goto(0,-170)
# p.goto(150,-70)
# turtle.done()
p.left(90)
p.fd(a)
p.left(60)
p.fd(a/2)
turtle.done()
\ 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