Commit d3a6eb0c by BellCodeEditor

save project

parent 098de81a
Showing with 10 additions and 6 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
pen.write("你\n好",font=("华文行楷",30,"normal"))
screen=turtle.Screen()
len=screen.textinput("提示","啊,笨蛋你来了。笨蛋,你要填写一个数字哦!!")
len=int(len)
screen.bgcolor("green")
pen.write(" 你 蛋\n 是 笨\n 大",font=("华文行楷",30,"normal"))
pen.hideturtle()
pen.penup()
pen.goto(95,70)
pen.goto(150,50)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(120)
pen.circle(60,180)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(60,180)
pen.forward(120)
pen.circle(len,180)
pen.forward(len*2)
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