Commit af20d806 by BellCodeEditor

auto save

parent b082d0a7
Showing with 18 additions and 11 deletions
import turtle import turtle
# Pen=turtle.Pen() Pen=turtle.Pen()
# Pen.write("Hi,诺依\n用python真好用\n——悟空",font=("Times",30,"normal")) Pen.write("Hi,诺依\n用python真好用\n——悟空",font=("Times",30,"normal"))
# Pen.hideturtle() Pen.hideturtle()
# Pen=turtle.Pen() Pen=turtle.Pen()
# turtle.done() screen=turtle.Screen()
Pen1=turtle len=screen.textinput("提示","你想要多大的爱心")
abc=int(len)
Pen1=turtle.Pen()
Pen1.penup()
Pen1.goto(-100,100)
Pen1.pendown()
Pen1.left(45) Pen1.left(45)
Pen1.forward(100) Pen1.forward(abc)
Pen1.circle(50,180) Pen1.circle(abc/2,180)
Pen1.right(90) Pen1.right(90)
Pen1.circle(50,180) Pen1.circle(abc/2,180)
Pen1.forward(100) Pen1.forward(abc)
Pen1.pennsize(10) Pen1.pensize(10)
screen=turtle.Screen()
screen.bgcolor("red")
turtle.done() 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