From 5466e90013211435839873e8cc9630f179dfa296 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 25 Dec 2021 14:51:17 +0800 Subject: [PATCH] save project --- diy1.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/diy1.py b/diy1.py index ea8676e..8215eb1 100644 --- a/diy1.py +++ b/diy1.py @@ -1,12 +1,14 @@ import turtle #背景 -screen=turtle.Screen -screen.bgcolor("light red") +screen=turtle.Screen() +screen.bgcolor("light blue") +#写 pen=turtle.Pen() +pen.penup() +pen.goto(100,-100) pen.write("Hi,诺伊\n用python写电子贺卡真是太有趣啦~\n我也喜欢你pfont("Times",18,"normal")) pen.hideturtle() -turtle.done() -#画圆 +#画爱心 pen1=turtle.Pen() pen1.pencolor("red") pen1.pensize(5) -- libgit2 0.25.0