Commit 4c65583d by BellCodeEditor

auto save

parent 7f29246c
Showing with 21 additions and 1 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light green")
pen=turtle.Pen() pen=turtle.Pen()
pen.write(" 春晓\n春明不觉晓\n处处闻啼鸟\n夜来风雨声\n花落知多少",font=("Times",40,"normal")) pen.penup()
pen.goto(-100,-300)
pen.write(" 春晓\n春明不觉晓\n处处闻啼鸟\n夜来风雨声\n花落知多少",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
p=turtle.Pen()
len=screen.textinput("提示","请输入爱心的大小")
l=int(len)
len=20
p.pensize(5)
p.pencolor("blue")
p.fillcolor("red")
p.begin_fill()
p.left(45)
p.forward(2*l)
p.circle(l,180)
p.right(90)
p.circle(l,180)
p.forward(2*l)
p.end_fill()
p.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