Commit c7c1a34f by BellCodeEditor

save project

parent 657736fc
Showing with 20 additions and 2 deletions
import turtle import turtle,random
pen=turtle.Pen() pen=turtle.Pen()
pen.circle(-100) pen1=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("green")
len=screen.textinput("提示","Please input your lovesize?")
len=float(len)
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen1.penup()
pen1.goto(100,-200)
pen1.write("春晓\n春眠不觉晓\n处处蚊子咬\n夜来香港脚\n臭得不得了",font=("楷体",30,"normal"))
pen1.hideturtle()
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.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