Commit 0b9d0c47 by BellCodeEditor

save project

parent 654bc3ba
Showing with 24 additions and 0 deletions
import turtle
s = turtle.Screen()
s.bgcolor("plum")
p = turtle.Pen()
p.penup()
p.goto(0,-100)
p.write("你好,\n很高兴见到你!",font=("Times",30,"normal"))
p.hideturtle()
#画图
p1 = turtle.Pen()
p1.pencolor("red")
p1.pensize(5)
l=s.textinput("提示""你")
len=int(l)
p1.left(135)
p1.forward(2*len)
p1.circle(-len,180)
p1.left(90)
p1.circle(-len,180)
p1.forward(2*len)
p1.hideturtle()
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