Commit e655a232 by BellCodeEditor

save project

parent a50ceeec
Showing with 28 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle as t
import random as r
# pen = t.Pen()
# pen.write("你好,\n诺依,\nturtle真难用。",font=("Times",20,"normal"))
# pen.hidet()
# t.done()
screen = t.Screen()
screen.bgcolor("pink")
pen1 = t.Pen()
pen1.color("red")
pen1.pensize(8)
pen1.fillcolor("red")
Len = r.randint(50,100)
pen1.begin_fill()
pen1.left(45)
pen1.forward(2*Len)
pen1.circle(Len,180)
pen1.right(90)
pen1.circle(Len,180)
pen1.forward(2*Len)
pen1.end_fill("red")
pen1.hideturtle()
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