Commit 803016cb by BellCodeEditor

auto save

parent 6095e7fb
import turtle
import random
turtle.speed(3)
def r(x,y,h,w):
turtle.penup()
turtle.goto(x,y)
turtle.pendown()
turtle.color("red","red")
turtle.begin_fill()
for i in range(2):
turtle.forward(h)
turtle.right(90)
turtle.forward(w)
turtle.right(90)
turtle.end_fill()
def a(x,y,text):
turtle.penup()
turtle.goto(x,y)
turtle.pendown()
turtle.color("black")
turtle.write(text,font=("华文行楷",40))
r(95,150,60,400)
a(100,-250,"一\n\n\n\n\n\n好")
r(-155,150,60,400)
a(-150,-250,"万\n\n\n\n\n\n高")
r(-100,250,210,60)
a(-100,190,"五福临门")
turtle.hideturtle()
turtle.done()
turtle.bgcolor()
def a(color,x,y):
turtle.pensize()
\ No newline at end of file
from turtle import*
speed(100)
hideturtle()
color1=["yellow","blue","red","green"]
for i in range(100):
color(color1[i%4])
circle(i,180)
right(90)
done()
\ No newline at end of file
from turtle import*
hideturtle()
penup()
goto(-100,-100)
pendown()
fillcolor("red")
begin_fill()
for i in range(6):
forward(150)
left(60)
end_fill()
fillcolor("green")
for i in range(6):
begin_fill()
for i in range(3):
forward(150)
right(120)
end_fill()
forward(150)
left(60)
done()
\ No newline at end of file
#s="l love python"
#print(s[7:])
#print(s[-6:])
#print(s[7:13])
#s="hello world!"
#print(s[::-1])
#print(s[8:2:-1])
#s="www.bellcode.com"
#print(s[4:12])
#print(s[:12:2])
#print(s[-1:-11:-3])
s="bellcode.bell.ai"
print(s[:4]+s[9:-3]+s[-2:]*3)
print(s[4:8]+s[7:3:-1]*2)
a
\ No newline at end of file
import turtle
t.penup()
t.goto(-200,0)
text ="你好,我的名字是小小"
for char in text:
f
\ 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