Commit 471ebd9f by BellCodeEditor

save project

parent c66a449e
Showing with 20 additions and 18 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("pink")
len=screen.textinput("100","100") len=screen.textinput("提示","大小")
len=int(len) len=int(len)
pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle() Pen=turtle.Pen()
len=60 Pen.penup()
pen.penup() Pen.goto(100,-100)
pen.goto(100,100) Pen.write("诺依,\nturtle真好用,\n我会在画板上写字啦!",font=("Times",15,"normal"))
pen.pendown() Pen.hideturtle()
pen.pensize(5)
pen.pencolor("red") Pen1=turtle.Pen()
pen.left(45) Pen1.pensize(5)
pen.forward(2*len) Pen1.pencolor("red")
pen.circle(len,180) Pen1.left(45)
pen.right(90) Pen1.forward(2*len)
pen.circle(len,180) Pen1.circle(len,180)
pen.forward(2*len) Pen1.right(90)
Pen1.circle(len,180)
Pen1.forward(2*len)
turtle.done() turtle.done()
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