Commit 21f1ece8 by BellCodeEditor

save project

parent c66a449e
Showing with 20 additions and 22 deletions
# 利用write()帮助悟空给诺依回信吧~ import turtle# 利用write()帮助悟空给诺依回信吧~
import turtle s=turtle.Screen()
screen=turtle.Screen() s.bgcolor('pink')
screen.bgcolor("light blue") a=int(s.textinput("提屎","爱心大小"))
len=screen.textinput("100","100") p=turtle.Turtle()
len=int(len) p.penup()
pen=turtle.Pen() p.goto(200,0)
pen.write("你好\nSB.",font=("Times",30,"normal")) p.write("marlo\nexe.",font=("Times",20,"normal"))
pen.hideturtle() p1=turtle.Turtle()
len=60 p1.color("red","red")
pen.penup() p1.begin_fill()
pen.goto(100,100) p1.left(45)
pen.pendown() p1.fd(2*a)
pen.pensize(5) p1.circle(50,180)
pen.pencolor("red") p1.right(90)
pen.left(45) p1.circle(50,180)
pen.forward(2*len) p1.fd(100)
pen.circle(len,180) p1.end_fill()
pen.right(90) turtle.done()
pen.circle(len,180) \ No newline at end of file
pen.forward(2*len)
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