diff --git a/diy1.py b/diy1.py index 2869140..8a06831 100644 --- a/diy1.py +++ b/diy1.py @@ -1,15 +1,17 @@ # 利用write()帮助悟空给诺依回信吧~ import turtle -#pen=turtle -#pen.write("你好\n真的服了.",font=("Times",30,"normal")) -#pen.hideturtle() +pen=turtle.Pen() +pen.write("你好\n???.",font=("times",30,"normal")) +pen.hideturtle() +#画爱心 pen1=turtle.Pen() pen1.pencolor("red") +pen1.pensize(5) pen1.left(45) pen1.forward(100) pen1.circle(50,180) pen1.right(90) pen1.circle(50,180) pen1.forward(100) -pen1.heading() -turtle.done \ No newline at end of file +pen1.hideturtle() +turtle.done() \ No newline at end of file