Commit 63fc3068 by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
# 利用write()帮助悟空给诺依回
import turtle
t=turtle.Pen()
s=turtle.Screen()
s.bgcolor("light blue")
t.penup()
t.goto(100,100)
t.write("呵\n\n\n呵",font=("Times",50,"normal"))
t.hideturtle()
a=turtle.Pen()
a.pencolor("red")
a.pensize(10)
a.left(45)
len=s.textinput("大小","你想输入什么颜色")
len=int(len)
a.forward(len*2)
a.circle(len,180)
a.right(90)
a.circle(len,180)
a.forward(len*2)
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