From 632a578122c47205b55c726fb4979cad3fa53cdf Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 25 Feb 2024 19:15:22 +0800 Subject: [PATCH] save project --- star.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/star.py b/star.py index 8cd3639..3de8db3 100644 --- a/star.py +++ b/star.py @@ -1,7 +1,7 @@ # 上节课你是这样绘制的五角星👇: # 这节课你可以利用新学的知识自定义五角星的颜色么? import turtle -ink = input("什么色?")#绘制五角星# +ink = input("red")#绘制五角星# pen = turtle.Pen() pen.fillcolor(ink) pen.begin_fill() @@ -10,3 +10,4 @@ for i in range(5): #重复执行5次 pen.right(144) #向右移动144度,注意这里的参数一定不能变 pen.end_fill() #结束填充红色 turtle.done() +hasattr turtle \ No newline at end of file -- libgit2 0.25.0