Commit 7e05db79 by BellCodeEditor

save project

parent a5a70848
Showing with 12 additions and 9 deletions
import turtle import turtle
pen = turtle.pen() pen = turtle.Pen()
screen = turtle.Screen() screen = turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
size = screen.textinput("画爱心","你想画多大的爱心")
size = int(size)
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("你好呀,\n我是方柯翰。",font=("Times",20,"normal")) pen.write("你好呀,\n我是方柯翰。",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
turtle.done()
penl = turtle.pen()
penl.pensize(3) penl = turtle.Pen()
penl.pencolor("pink") penl.pensize(5)
penl.pencolor("red")
penl.left(45) penl.left(45)
penl.forward(100) penl.forward(size)
penl.circle(50,180) penl.circle(size/2,180)
penl.right(90) penl.right(90)
penl.circle(50,180) penl.circle(size/2,180)
penl.forward(100) penl.forward(size)
turtle.done() 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