Commit 0a65e834 by BellCodeEditor

save project

parent 16f0d60e
import turtle as t
color=['red','pink','green','black']
ra=[10,60,110,160]
for i in range(4):
t.pu()
t.goto(0,-ra[i])
t.pd()
t.pencolor(color[i])
bg-x -=n 1
if read.x <=0-rect
\ No newline at end of file
import turtle
turtle.pendown()
turtle.goto(0,0)
turtle.circle(20,360)
turtle.penup()
turtle.goto(0,-30)
turtle.pendown()
turtle.circle(120,360)
turtle.penup()
turtle.goto(0,-60)
turtle.pendown()
turtle.circle(220,360)
turtle.penup()
turtle.goto(0,-100)
turtle.pendown()
turtle.circle(320,360)
turtle.penup()
turtle.goto(0,-140)
turtle.pendown()
turtle.circle(420,360)
turtle.done()
\ No newline at end of file
import turtle
turtle.circle(90,90)
turtle.right(180)
turtle.circle(90,90)
turtle.right(180)
turtle.circle(90,90)
turtle.right(180)
turtle.circle(90,90)
turtle.right(180)
turtle.done()
\ No newline at end of file
s = input()
a= len(s)//2
print(s[a:a+2])
s = input("输入字符串")
print(len(s))
import turtle as t
import random as r
r.seed(1)
t.pensize(2)
t.pencolor('red')
angles(6)
t.penup()
t.goto(x0,y0)
t.pendown()
\ No newline at end of file
import turtle
import turtle
edge = 6
d = 0
k = 1
for j in range(10):
for i in range(edge)
turtle.fd(k)
d += 360/edge
turtle.seth(d)
k += 3
turtle.done()
\ No newline at end of file
import random
brandlist = ['华为','苹果','小米','OPPO','诺基亚']
random.seed(0)
i = random.randint(0,4)
name = brandlist[i]
print(name)
\ No newline at end of file
import turtle
turtle.speed(1
)
for i in range(4):
turtle.fd(100)
turtle.fd(-100)
turtle.seth((i+1)*90)
import turtle as t
t.
x_len=400
y_ien=300
\ No newline at end of file
import turtle as t
import turtle as r
color = ['red','orange','bule','green','purple']
r.seed(1)
t.pencolor('red')
angles = 6
points = [[0,0],[50,40],[70,80],[-40,30]]
for i in range(len(points)):
x0,y0 = points[i]
t.penup()
t,goto(x0,y0)
t.pendown()
length = r.randint(6,16)
for i in randint(6,16):
t.forward(length)
t.backward(length)
t.right(360 / angles)
t.done()
\ No newline at end of file
import pygame
from pygame import loacals
pygame.init()
screen = pygame.display.set_mode((660,480))
FPSSCLOCK = pygame.time.clock()
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
x,y = 240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
x +=30
position.append((x.y))
position.pop(0)
screen.blit(background,(0,0))
screen.blit(right.position[-1])
for i in range(len(position)-1):
screen.blit(baby,position[i])
screen.blit(food,(360,300))
pygame.display.update()
FPSSCLOCK.TICK(3)
\ No newline at end of file
import random
import random
brandlist = ['0','1','2','3','4']
random.seed(0)
i=random.randint(0.4)
name=brandlist[i]
print(name)
\ No newline at end of file
import turtle
import turtle
turtle.pendown()
turtle.goto(0,0)
turtle.circle(20,360)
turtle.penup()
turtle.goto(40,0)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(80,0)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(120,0)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(160,0)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(20,-40)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(60,-40)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(100,-40)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(140,-40)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(36,-80)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(76,-80)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(116,-80)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(55,-120)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(95,-120)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.goto(70,-160)
turtle.pendown()
turtle.circle(20,360)
turtle.penup()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
import turtle as t
import turtle as t
t.circle("red","yellow")
t.begin_fill()
for i in range(50):
t.fd(200)
t.right(170)
t.end_fill()
t.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