Commit c269aac3 by BellCodeEditor

save project

parent 07858a54
Showing with 25 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("坤坤贴士","爱心大小")
j=int(len)
len=50
pen=turtle.Pen()
pen.hideturtle()
len=60
pen.penup()
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(j,180)
pen.right(90)
pen.circle(j,180)
pen.forward(2*len)
pen.penup()
pen.goto(100,-100)
pen.write("你好\n孤勇鸡。",font=("Times",30,"normal"))
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