From 271cfbd2d470afc108bbcfca7f7a4e487a07ab47 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 18 Dec 2021 13:36:27 +0800 Subject: [PATCH] save project --- func.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/func.py b/func.py index 7b116a6..5d4d87c 100644 --- a/func.py +++ b/func.py @@ -1,18 +1,21 @@ import turtle +#背景颜色 screen=tuple.Screen() -screen.bgclor("light blue") +screen.bgclor("light blue") +#写字 pen=turtle.pen() pen.penup() pen.goto(100,-100) -pen.write(“嗨,诺依~\n用python写电子贺卡真是太有趣了~\n我也喜欢python~\n悟空",font=(times",20,"nomal")) +pen.width(“嗨,悟空,写贺卡真是太有趣了,我喜欢你!!!我能嫁给你吗?你女朋友不会生气吧?不像我,我只会心疼giegie~~~——诺依",font=(Times",20,"normal")) pen.hidetutle() +#画爱心 pan1.tutle.pen() -pan.pancolor("red") +pan1.pancolor("red") pan1.pensize(5) -lovesize=screen.textinput("提示","你想要多大的爱心呀?") +lovesize=screen.textinput("提示,你想要多大的爱心呀?") len=int(lovesize) pan1.left(45) -pani.forward(2*len) +pan1.forward(2*len) pan1.circle(100,180) pen1.right(90) pan1.circle(100,180) -- libgit2 0.25.0