Commit 0907ef88 by BellCodeEditor

save project

parent 654bc3ba
Showing with 30 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen1=turtle.Screen()
WWL=pen1.textinput("设置","心的大小")
WWL=int(WWL)
pen1.bgcolor("light pink")
pen = turtle.Pen()
pen.down()
pen.write("hello word,\n你好,编程世界!",font=("楷体",15,"normal"))
# pen.hideturtle()
pen.up()
pen.goto(-20,30)
pen.down()
pen.pencolor("red")
pen.pensize(5)
pen.left(45)
pen.forward(WWL)
pen.circle(WWL/2,180)
pen.right(90)
pen.circle(WWL/2,180)
pen.forward(WWL)
turtle.done()
pen.hideturtle()
\ 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