Commit 916a4311 by BellCodeEditor

auto save

parent dbdf5632
Showing with 6 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light ") screen.bgcolor("light blue")
len=screen.textinput("200","200") len=screen.textinput("jgjgij","reufhrrefriuf")
len=int(len) len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你呀的瞅什么呢\n我是爹米老鼠.",font=("Times",30,"normal")) pen.write("你呀的瞅什么呢\n我是your爹米老鼠.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,100)
...@@ -13,11 +13,12 @@ pen.pendown() ...@@ -13,11 +13,12 @@ pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
len=60 len=60
lovesize=int(len)
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*lovesize)
pen.circle(len,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(len,180)
pen.forward(2*len) pen.forward(2*lovesize)
pen.hideturtle() pen.hideturtle()
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