Commit 97ac849c by BellCodeEditor

save project

parent a50ceeec
Showing with 24 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light blue")
len=int(input("请输入爱心大小:"))
color=input("请输入颜色:")
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.color(color)
pen.begin_fill()
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.end_fill()
pen.penup()
pen.goto(100,0)
pen.write("诺一,\n我现在在用python给你回信",font=("times",15,"normal"))
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