Commit 1b4a4751 by BellCodeEditor

auto save

parent 46fa8de3
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
pen.penup()
pen.goto(100,-100)
pen.write("春晓\n春眠不觉晓\n处处闻啼鸟",font=("SimHei",10,"normal")) pen.write("春晓\n春眠不觉晓\n处处闻啼鸟",font=("SimHei",10,"normal"))
pen.hideturtle() pen.hideturtle()
p=turtle.Pen()
p.pencolor("red")
p.pensize(6)
p.fillcolor("red")
len=screen.textinput("谢谢你的贺卡","输入你的名字,领取贺卡")
l=int(len)
p.left(45)
p.begin_fill()
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()
\ 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