Commit 87085aa7 by BellCodeEditor

save project

parent ccd76176
Showing with 18 additions and 2 deletions
import turtle
A=100
screen=turtle.Screen()
screen.bgcolor("green")
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("八嘎呀路",font=("Times",20,"normal"))
pen=turtle.Pen()
pen.hideturtle()
pen.write("你好,\n诺伊",font=("Times",30,"normal"))
pen.pencolor("red")
len=screen.textinput("提示","你要画一个多大的爱心")
B=int(len)
pen.pensize(9)
pen.left(45)
pen.forward(2*B)
pen.circle(B,180)
pen.right(90)
pen.circle(B,180)
pen.forward(2*B)
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