From ef6f66e50b57db505869685df19ab10e29a50ba3 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 19 Mar 2023 10:53:01 +0800 Subject: [PATCH] save project --- diy1.py | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/diy1.py b/diy1.py index 6eb2306..7239816 100644 --- a/diy1.py +++ b/diy1.py @@ -1,10 +1,23 @@ -#import turtle -#pen=turtle.Pen() -#pen.write("诺伊,\nturtle真好用!",font=("Times",30,"normal")) -#pen.hideturtle() -#turtle.done() import turtle +pen=turtle.Pen() +pen.write("诺伊,\nturtle真好用!",font=("Times",30,"normal")) +pen.hideturtle() pen1=turtle.Pen() -pen1.circle(50) +pen1.penup() +pen1.goto(-100,0) +pen1.pendown() +pen1.pensize(5) +pen1.pencolor("red") +pen1.fillcolor("red") +pen1.begin_fill() +pen1.left(45) +pen1.forward(100) +pen1.circle(50,180) +pen1.right(90) +pen1.circle(50,180) +pen1.forward(100) +pen1.end_fill() +pen1.hideturtle() turtle.done() + -- libgit2 0.25.0