Commit 80314c6f by BellCodeEditor

save project

parent 9c85b1c3
Showing with 8 additions and 12 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("red")
pen=turtle.Pen()
pen.up()
pen.goto(100,-100)
pen.write("cao",font=("Times",30,"normal"))
pen1=turtle.Pen()
len=screen.textinput("大小","多大")
len=int(len)
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen=turtle.Pen1()
pen.left(45)
pen.forward(len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len)
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