diff --git a/diy1.py b/diy1.py index b7fce1e..c011ffa 100644 --- a/diy1.py +++ b/diy1.py @@ -1,12 +1,15 @@ -# 利用write()帮助悟 -turtle.done() import turtle -pen=turtle.Pen -pen.write("做好眼前事,珍惜眼前人",font("Times",20,"narmal")) -pen.goto(0,0) -pen1=turtle.pen -pen1.pensize(5) +pen=turtle.Pen() +pen.penup() +pen.goto(100,-100) +pen.write("做好眼前事,\n珍惜眼前人",font=("Times",13,"narmal")) +pen.hideturtle() +screen=turtle.Screen() +screen.bgcolor("pink") +pen1=turtle.pen() +pen1.pensize(10) pen1.pencolor("red") +pen1.pendown() pen1.left(45) pen1.forward(100) pen1.circle(50,180)