From 5ca0b6077d32406fdacad080406f46a4ae908c78 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Tue, 26 Jan 2021 09:43:38 +0800 Subject: [PATCH] save project --- diy1.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/diy1.py b/diy1.py index 046be4a..4e3ce05 100644 --- a/diy1.py +++ b/diy1.py @@ -1,9 +1,12 @@ # 利用write()帮助悟空给诺依回信吧~ import turtle -# pen=turtle.Pen() -# pen.write("你好呀!诺依\n我学会用turtle模块了,\n真好玩",font=("Times",30,"normal")) -# hideturtle() -# turtle.done() +pen=turtle.Pen() +screen=turtle.Screen() +screen.bgcolor("pink") +pen.penup() +pen.goto(100,-100) +pen.write("你好呀!诺依\n我学会用turtle模块了,\n真好玩!\n--悟空",font=("Times",13,"normal")) +pen.hideturtle() pen1=turtle.Pen() pen1.pensize(5) pen1.pencolor("red") -- libgit2 0.25.0