Commit 5fed4973 by BellCodeEditor

save project

parent 9fce1bd9
Showing with 34 additions and 4 deletions
import turtle as t
jin = t.Screen()
jin.bgcolor("pink")
pen = t.Pen()
pen.penup()
pen.fd(-200)
......@@ -10,11 +12,11 @@ pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.fd(100)
pen1.circle(50,180)
pen1.fd(200)
pen1.circle(100,180)
pen1.right(90)
pen1.circle(50,180)
pen1.circle(100,180)
pen1.fd(100)
pen1.fd(200)
t.done()
\ No newline at end of file
import turtle as t
import random
len = random.randint(50,100)
jin = t.Screen()
jin.bgcolor("pink")
pen = t.Pen()
pen.penup()
pen.fd(-200)
pen.pendown()
pen.write("只因你太美\n小黑子食不食油饼",font=("Times",10,"normal"))
pen.hideturtle()
pen1 = t.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.fd(len)
pen1.circle(len/2,180)
pen1.right(90)
pen1.circle(len/2,180)
pen1.fd(len)
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