Commit cd89e6f6 by BellCodeEditor

save project

parent a50ceeec
Showing with 24 additions and 0 deletions
import turtle
#设置背景
s=turtle.Screen()
s.bgcolor("light pink")
#写字
p=turtle.Pen()
p.penup()
p.goto(100,-100)
p.write("春眠不觉晓,\n处处闻啼鸟。\n夜来风雨声,\n花落知多少。",font=("Times",13,"normal"))
p.hideturtle()
#画心
p1=turtle.Pen()
len=50
p1.pensize(3)
p1.pencolor("red")
p1.left(45)
p1.fd(len*2)
p1.circle(len,180)
p1.right(90)
p1.circle(len,180)
p1.fd(len*2)
p1.hideturtle()
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