Commit 5d72d082 by BellCodeEditor

save project

parent 64377fd9
Showing with 10 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
b=turtle.Screen()
b.bgcolor("green")
c=int(b.textinput("大小","多大的爱心"))
a=turtle.Pen()
a.write("猪福语:\n诺依,你个傻*,\n滚蛋!",font=("times",30,"normal"))
a.goto(-150,0)
a.fillcolor("red")
a.begin_fill()
a.setheading(45)
a.fd(100)
a.circle(50,180)
a.fd(2*c)
a.circle(c,180)
a.right(90)
a.circle(50,180)
a.fd(100)
a.circle(c,180)
a.fd(2*c)
a.end_fill()
a.setheading(20)
def www(w):
a.setheading(90)
a.left(w)
a.fd(20)
a.fd(0.4*c)
for i in range(3):
www(20)
www(-20)
......
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