diff --git a/diy1.py b/diy1.py index 006319e..039786d 100644 --- a/diy1.py +++ b/diy1.py @@ -1,5 +1,16 @@ import turtle -Pen=turtle.Pen() -pen.write("你好,小贝",font=("Times","30","normal") -Pen.hideturtle() -turtle.done() \ No newline at end of file +pen=turtle.Pen() +pen.write("你好,小贝",font=("Times",30,"normal")) +pen.hideturtle() + +pen1=turtle.Pen() +pen1.pensize(5) +pen1.pencolor("red") +pen1.left(45) +pen1.forward(100) +pen1.circle(50,180) +pen1.right(90) +pen1.circle(50,180) +pen1.forward(100) + +turtle.done()