diff --git a/diy1.py b/diy1.py index 563d32e..835c677 100644 --- a/diy1.py +++ b/diy1.py @@ -1,3 +1,15 @@ # 利用write()帮助悟空给诺依回信吧~ import turtle -#创建变量pen为turtle的Pen()方法 \ No newline at end of file +#创建变量pen为turtle的Pen()方法 +# pen=turtle.Pen() +# pen.write("诺依,\n turtle真好用\n我会在画布上写字啦!",font=("Times",10,"normal")) +#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) +hideturtle() +turtle.done() \ No newline at end of file