From b43c541d30d6017f7d78001f6d963c47289b1069 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 24 Jun 2023 16:44:45 +0800 Subject: [PATCH] save project --- diy1.py | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/diy1.py b/diy1.py index ba5deff..52b3b96 100644 --- a/diy1.py +++ b/diy1.py @@ -1,9 +1,20 @@ # 利用write()帮助悟空给诺依回信吧~ import turtle -# pen=turtle.Pen() -# pen.write("你好,很高兴认识你。",font=("Times",20,"normal")) -# pen.hideturtle() -# turtle.done() +screen=turtle.Screen() +screen.bgcolor("pink") +pen=turtle.Pen() +pen.penup() +pen.goto(100,-100) +pen.write("你好,很高兴认识你。",font=("Times",20,"normal")) +pen.hideturtle() pen1=turtle.Pen() -pen1.circle(100) +pen1.pensize(5) +pen1.pencolor("yellow") +pen1.left(45) +pen1.forward(100) +pen1.circle(50,180) +pen1.right(90) +pen1.circle(50,180) +pen1.forward(100) +pen1.hideturtle() turtle.done() -- libgit2 0.25.0