Commit 52148e1c by BellCodeEditor

auto save

parent 10871caf
Showing with 24 additions and 4 deletions
import turtle
import turtle
import turtle
p=turtle.Pen()
p.write("你好啊",font=("Times",30,"normal"))
turtle.done()
\ No newline at end of file
s=turtle.Screen()
r1=s.textinput("提示","你想画多大的爱心")
r=int(r1)
p.write("你好啊\n我的名字叫你爸\n好大儿真乖",font=("Times",30,"normal"))
p1=turtle.Pen()
p1.pencolor("yellow")
p1.fillcolor("yellow")
s.bgcolor("blue")
p1.penup()
p1.goto(300,-200)
p1.pendown()
p1.begin_fill()
p1.lt(45)
p1.fd(2*r)
p1.circle(r,180)
p1.rt(90)
p1.circle(r,180)
p1.fd(2*r)
p1.end_fill()
p.ht()
p1.ht()
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