Commit f267d999 by BellCodeEditor

auto save

parent 654bc3ba
Showing with 31 additions and 0 deletions
import turtle
#背景颜色
screen=turtle.Screen()
len=screen.textinput("提示",'你想要多大的爱心呀!')
lovesize=int(len)
screen.bgcolor('light blue')
#心
len=60
pen = turtle.Pen()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(2*lovesize)
pen.hideturtle()
#文字
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("你好呀!\n你好呀!\n你好呀!",font=("Times",30,"normal"))
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("s",'prompt')
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