Commit 676b7dc9 by BellCodeEditor

save project

parent 7f2b303d
Showing with 21 additions and 10 deletions
import turtle import turtle
pen1=turtle.Pen() screen=turtle.Screen()
pen1.pensize(10) screen.bgcolor("light blue")
pen1.pencolor("red") len=screen.textinput("100","100")
pen1.left(45) len=int(len)
pen1.forward(100) pen=turtle.Pen()
pen1.circle(50,180) len=60
pen1.right(90) pen.pensize(5)
pen1.circle(50,180) pen.pencolor("red")
pen1.forward(100) pen.left(45)
pen1.hideturtle() pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.penup()
pen.goto(-200,-200)
pen.pendown()
pen.pencolor("black")
pen.write("你好诺依\n我也可以用Python写电子邮件\n——悟空.",font=("Times",30,"normal"))
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