Commit c3dbadd6 by BellCodeEditor

save project

parent 76722f1f
Showing with 17 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
# p=turtle.Pen() sceen=turtle.Screen()
# p.write("我要刺杀李总(李文轩)!\n一天后......\n哈哈!刺杀成功!",font=("times",20,"normal")) sceen.bgcolor("pink")
p=turtle.Pen()
p.penup()
p.goto(100,-100)
p.write("但愿人长久,\n千里共婵娟。",font=("times",20,"normal"))
n=sceen.textinput("画爱心","你想画多大的爱心?")
r=int(n)
z=turtle.Pen() z=turtle.Pen()
z.pensize(6)
z.pencolor("red")
z.left(45) z.left(45)
z.fd(100) z.fd(2*r)
z.circle(50,180) z.circle(r,180)
z.right(90)
z.circle(r,180)
z.fd(2*r)
z.hideturtle()
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