From 53b8c52d56c7853438c0753e9c188ccbe0c17359 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 20 Jun 2021 09:50:01 +0800 Subject: [PATCH] save project --- diy1.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 diy1.py diff --git a/diy1.py b/diy1.py new file mode 100644 index 0000000..d9ab3a8 --- /dev/null +++ b/diy1.py @@ -0,0 +1,20 @@ +# 利用write()帮助悟空给诺依回信吧~ +import turtle +screen=turtle.Screen() +screen.bgcolor("light blue") +pen=turtle.Pen() +pen.penup() +pen.goto(100,-100) +pen.write("诺依,\nturtle真好用,\n我会在画布上写字啦!",font=("times",13,"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) +pen1.hideturtle() +turtle.done() \ No newline at end of file -- libgit2 0.25.0