Commit 1d17d7e3 by BellCodeEditor

auto save

parent d30a896d
Showing with 99 additions and 0 deletions
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(-100,-100)
pen.pendown()
pen.forward(300)
pen.left(90)
pen.goto(200,200)
pen.goto(-100,200)
pen.goto(-100,-100)
pen.goto(0,-100)
pen.goto(0,200)
pen.goto(100,200)
pen.goto(100,-100)
pen.penup()
pen.goto(-100,0)
pen.pendown()
pen.goto(200,0)
pen.goto(200,100)
pen.goto(-100,100)
pen.penup()
pen.goto(-100,-100)
pen.pendown()
pen.goto(0,200)
pen.penup()
pen.goto(-100,-100)
pen.pendown()
pen.goto(0,100)
pen.penup()
pen.goto(-100,-100)
pen.pendown()
pen.goto(200,200)
pen.penup()
pen.goto(-100,-100)
pen.pendown()
pen.goto(100,200)
pen.goto(-100,-100)
pen.goto(100,0)
pen.goto(-100,-100)
pen.goto(-100,-100)
pen.goto(200,100)
pen.goto(-100,-100)
pen.goto(200,0)
pen.fillcolor("pink")
pen.goto(-100,-100)
pen.begin_fill()
pen.goto(100,200)
pen.goto(-100,200)
pen.goto(-100,-100)
pen.end_fill()
pen.begin_fill()
pen.goto(200,-100)
pen.goto(200,100)
pen.goto(-100,-100)
pen.end_fill()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen.penup()
pen.pencolor("blue")
pen.fillcolor("red")
pen.goto(-100,100)
pen.write("你好!\n我是大雄老师\n很高兴认识你",font=("Times",20,"normal"))
pen.pendown()
lenth=screen.textinput("提示","请输入爱心的大小,10~100:")
rad=int(lenth)
pen.begin_fill()
pen.left(45)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.left(90)
pen.forward(100)
pen.end_fill()
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.color("yellow")
pen.fillcolor("red")
pen.begin_fill()
pen.forward(100)
pen.right(144)
pen.forward(100)
pen.right(144)
pen.forward(100)
pen.right(144)
pen.forward(100)
pen.right(144)
pen.forward(100)
pen.right(144)
pen.end_fill()
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