Commit 0fdbca5b by BellCodeEditor

save project

parent 654bc3ba
Showing with 21 additions and 0 deletions
import turtle
pen1 = turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("山本我日你仙人\n给句痛快话\n投降不投降",
font=("Times",10,"normal"))
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("#abcdef")
pen.color("red")
pen.pensize(10)
len=int(screen.textinput("提示","输入爱心的大小:"))
pen.left(45)
pen.fd(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.fd(2*len)
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