Commit 776be3e6 by BellCodeEditor

save project

parent 07858a54
Showing with 37 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
pen.pensize(5)
pen.pencolor("red")
pen.write("诺伊,\n你好啊,\n天天好",font=("Times",20,"normal"))
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
turtle.done()
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.fillcolor("pink")
screen.bgcolor("light blue")
pen.penup()
pen.goto(100,0)
pen.write("生日快乐",font=("times",30,"normal"))
a=screen.textinput("提示","你的爱心有多大")
lovesize=int(a)
pen.penup()
pen.goto(0,0)
pen.pendown()
pen.begin_fill()
pen.left(45)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(2*lovesize)
pen.end_fill()
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