Commit 16c611f4 by BellCodeEditor

save project

parent 654bc3ba
Showing with 27 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen1=turtle.Pen()
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("red")
len=int(screen.textinput("输入框","请输入爱心大小:"))
pen1.write("老铁们奥,\n今天我老八再给大家表演一次吃粑粑,\n奥里给,\n干他就完了,\n兄弟们!",font=("Times",30,"normal"))
pen1.hideturtle()
pen.fillcolor("green")
pen.up()
pen.goto(0,-150)
pen.begin_fill()
pen.pensize(5)
pen.color("green")
pen.begin_fill()
pen.left(45)
pen.forward(len)
pen.circle(len/2,180)
pen.right(90)
pen.circle(len/2,180)
pen.forward(len)
pen.end_fill()
pen.hideturtle()
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