Commit d8510421 by BellCodeEditor

save project

parent c66a449e
Showing with 20 additions and 17 deletions
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的姓名是:")
turtle.done()
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("100","100") len=screen.textinput("爱心","你的爱心大小是:")
len=int(len) len=int(len)
pen=turtle.Pen() Pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal")) Pen.write("你好.\n",font=("Times",30,"normal"))
pen.hideturtle() Pen.hideturtle()
len=60 Pen1=turtle.Pen()
pen.penup() Pen1.pendown()
pen.goto(100,100) Pen1.pencolor("red")
pen.pendown() Pen1.pensize(5)
pen.pensize(5) Pen1.left(45)
pen.pencolor("red") Pen1.forward(len*2)
pen.left(45) Pen1.circle(len,180)
pen.forward(2*len) Pen1.right(90)
pen.circle(len,180) Pen1.circle(len,180)
pen.right(90) Pen1.forward(len*2)
pen.circle(len,180) Pen1.hideturtle()
pen.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