Commit 987038c1 by BellCodeEditor

save project

parent fb2e9fb4
Showing with 7 additions and 6 deletions
import turtle import turtle
import random
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("你好呀,",font=("Times",15,"normal")) pen.write("你好呀,",font=("Times",15,"normal"))
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("lightgreen") screen.bgcolor("green")
len=100 len=random.randint(20,100)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(6) pen1.pensize(6)
pen1.color("red") pen1.color("red")
pen1.left(45) pen1.left(45)
pen1.fd(len*2) pen1.fd(len)
pen1.circle(len,180) pen1.circle(len/2,180)
pen1.rt(90) pen1.rt(90)
pen1.circle(len,180) pen1.circle(len/2,180)
pen1.fd(len*2) pen1.fd(len)
pen1.hideturtle() pen1.hideturtle()
turtle.done() turtle.done()
......
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