Commit 6ed2ad31 by BellCodeEditor

auto save

parent b3572cb4
Showing with 22 additions and 10 deletions
......@@ -4,12 +4,12 @@ pen1.pensize(5)
pen1.fillcolor("pink")
pen1.begin_fill()
pen1.left(45)
pen1.forward(100)
pen1.forward(200)
pen1.circle(50,180)
pen1.circle(100,180)
pen1.right(90)
pen1.circle(50,180)
pen1.circle(100,180)
pen1.left(0)
pen1.forward(100)
pen1.forward(200)
pen1.end_fill()
turtle.done()
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle
# pen=turtle.Pen()
# pen.write("Hi,诺依。\n我也会用turtle模块了!",font=("Time",40,"normal"))
# pen.hideturtle()
# turtle.done()
pen=turtle.Pen()
pen.goto(100,-100)
pen.write("Hi,诺依。\n我也会用turtle模块了!\n——悟空",font=("Time",10,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(0)
pen1.pencolor("pink")
pen1.fillcolor("pink")
pen1.begin_fill()
pen1.left(45)
pen1.forward(100)
......@@ -13,4 +20,8 @@ pen1.right(90)
pen1.circle(50,180)
pen1.left(0)
pen1.forward(100)
turtle.done()
\ No newline at end of file
pen1.end_fill()
turtle.done()
hideturtle()
screen=turtle.Screen()
screen.color("red")
\ 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