Commit 6d43ae1c by BellCodeEditor

save project

parent 07858a54
Showing with 30 additions and 0 deletions
import turtle
bi = turtle.Pen()
bi.lt(45)
bi.fd(100)
bi.circle(50,180)
bi.rt(90)
bi.circle(50,180)
bi.fd(100)
bi.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
bi = turtle.Pen()
pinmu = turtle.Screen()
bi.pensize(5)
bi.pencolor("red")
len = pinmu.textinput("提示","请输入大小")
int_len= int(len)
bi.lt(45)
bi.fd(int_len*2)
bi.circle(int_len,180)
bi.rt(90)
bi.circle(50,180)
bi.fd(100)
bi.penup()
bi.goto(-100,-100)
bi.write("你好,精神小伙",font=("Times",30,"normal"))
bi.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