Commit 48c958b0 by BellCodeEditor

save project

parent 36f32dae
Showing with 6 additions and 19 deletions
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light pink") pen=turtle.pen()
len=screen.textinput("提示","爱心的大小是") sice=textinput("提示","你想要多大的魔法阵呀?")
love=float(len) pen.circle(sice)
pen=turtle.Pen() pen.circle(size,360,3)
pen.write("你好\n诺依你吃了吗.",font=("Times",50,"normal")) pen.circle(size,60)
pen.hideturtle() pen.circle(size,360,3)
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*love)
pen.circle(love,180)
pen.right(90)
pen.circle(love,180)
pen.forward(2*love)
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