Commit 27a835f6 by BellCodeEditor

auto save

parent 33f73e0e
Showing with 12 additions and 9 deletions
import turtle import turtle
pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
pen.write("你好 \n hi ",font("黑体"10"normal"))
pen.hideturtle()
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-50)
pen.write("你好 \n hi ",font=("黑体",30,"normal"))
pen.hideturtle()
line=screen.textinput("提示","你想要多大的爱心")
asd=int(line)
pen1=turtle.Pen() pen1=turtle.Pen()
pen.goto(-100,-50)
pen1.pencolor("red") pen1.pencolor("red")
pen.penup
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(line*2)
pen1.circle(50,180) pen1.circle(line,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(line,180)
pen1.forward(100) pen1.forward(line*2)
pen1.hideturtle() pen1.hideturtle()
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