diff --git a/diy1.py b/diy1.py new file mode 100644 index 0000000..094b37a --- /dev/null +++ b/diy1.py @@ -0,0 +1,16 @@ +# 利用write()帮助悟空给诺依回信吧~ +import turtle +screen=turtle.Screen() +screen.bgcolor("light blue") +pen=turtle.Pen() +pen.write("诺依,\nnturtle真好用,\n我会在画布上写字啦!",font=("Times",30,"normal")) +pen.hideturtle() +turtle.done() +pen1=turtle.Pen() +pen1.pencolor("red") +pen1.pencolor(5) +pen1.left(45) +pen1.forward(50) +pen1.circle(25,180) +pen1.forward(50) +turtle.done()