Commit 10a65eda by BellCodeEditor

save project

parent 1979bb7f
Showing with 47 additions and 20 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
# pen=turtle.Pen()
# pen.write("你好,\n诺依。",font=("Times",30,"normal"))
# pen.hideturtle()
# turtle.done()
pen=turtle.Pen()
pen1=turtle.Pen()
pen1.pensize(5)
screen=turtle.Screen()
pen.penup()
pen.goto(100,-100)
pen.write("你好,\n诺依。",font=("Times",30,"normal"))
screen.bgcolor("pink")
pen.hideturtle()
pen1.pensize(20)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(270)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.pencolor("orange")
pen1.left(90)
pen1.forward(90)
pen1.circle(45,180)
pen1.right(90)
pen1.circle(45,180)
pen1.forward(90)
pen1.pencolor("yellow")
pen1.left(90)
pen1.forward(80)
pen1.circle(40,180)
pen1.right(90)
pen1.circle(40,180)
pen1.forward(80)
pen1.pencolor("green")
pen1.left(90)
pen1.forward(70)
pen1.circle(35,180)
pen1.right(90)
pen1.circle(35,180)
pen1.forward(70)
pen1.fillcolor("purple")
pen1.begin_fill()
pen1.pencolor("blue")
pen1.left(90)
pen1.forward(60)
pen1.circle(30,180)
pen1.right(90)
pen1.circle(30,180)
pen1.forward(60)
pen1.end_fill()
......
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