From 2bce42eafe4da13c9a3787720fd32c993aba0851 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 26 Dec 2021 14:14:18 +0800 Subject: [PATCH] save project --- diy1.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/diy1.py b/diy1.py index 51db56f..167138d 100644 --- a/diy1.py +++ b/diy1.py @@ -1,5 +1,21 @@ import turtle +screen=turtle.Screen() +screen.bgcolor("light blue") pen=turtle.Pen() -pen.write("Hi,洛伊~\n用python写电子贺卡真是太有趣啦\n我也很喜欢python~\n--悟空",font=("times",18,"normal")) +pen.penup() +pen.goto(100,-100) +pen.write("哎") pen.hideturtle() + +pen1=turtle.Pen() +pen1.pencolor("blue") +pen1.pensize(5) +len=60 +pen1.left(45) +pen1.forward(2*len) +pen1.circle(len,180) +pen1.right(90) +pen1.circle(len,180) +pen1.forward(2*len) +pen1.hideturtle() turtle.done() \ No newline at end of file -- libgit2 0.25.0