Commit 746559ba by BellCodeEditor

save project

parent 93d29447
Showing with 13 additions and 14 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("pink")
len=screen.textinput("提示","你想要多大的爱心呀?")
len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好\n诺依\n加个vx.",font=("Times",30,"normal")) pen1=turtle.Pen()
pen.hideturtle() pen1.penup()
len=60 pen1.forward(130)
pen.penup() pen1.pendown()
pen.goto(100,100) pen1.write("你好\n诺依.",font=("Times",30,"normal"))
pen.pendown() pen1.hideturtle()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("green")
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(120)
pen.circle(len,180) pen.circle(60,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(60,180)
pen.forward(2*len) pen.forward(120)
turtle.done() 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