diff --git a/diy1.py b/diy1.py index 25a2e49..a3ec0da 100644 --- a/diy1.py +++ b/diy1.py @@ -1,11 +1,14 @@ import turtle -# pen=turtle.Pen() -# pen.write("你好\n诺伊.",font=("Times",30,"normal")) -# pen.hideturtle() -# turtle.done() +screen=turtle.Screen() +screen.bgcolor("green") +pen=turtle.Pen() +pen.penup() +pen.goto(-200,-100) +pen.write("你好\n人机.",font=("Times",30,"normal")) +pen.hideturtle() pen1=turtle.Pen() pen1.pensize(6) -pen1.pencolor("green") +pen1.pencolor("red") pen1.left(45) pen1.forward(100) pen1.circle(50,180)