Commit b117d9ab by BellCodeEditor

save project

parent c66a449e
Showing with 18 additions and 19 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() p=turtle.Screen()
screen.bgcolor("light blue") p.bgcolor("light blue")
len=screen.textinput("100","100") a=turtle.Pen()
len=int(len) a.penup()
pen=turtle.Pen() a.goto(100,-100)
pen.write("你好\nSB.",font=("Times",30,"normal")) a.write("但愿人长久,\n千里共婵娟。",font=("Times",20,"normal"))
pen.hideturtle() a.hideturtle()
s=turtle.Pen()
s.pensize(10)
s.pencolor("red")
len=60 len=60
pen.penup() s.left(45)
pen.goto(100,100) s.forward(2*len)
pen.pendown() s.circle(len,180)
pen.pensize(5) s.right(90)
pen.pencolor("red") s.circle(len,180)
pen.left(45) s.forward(2*len)
pen.forward(2*len) turtle.done()
pen.circle(len,180) \ No newline at end of file
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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