From 43269fbb1c6ef1c4bb54aca9bed6bf9941dd5984 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 19 Sep 2020 15:50:13 +0800 Subject: [PATCH] save project --- star.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/star.py b/star.py index 16fede3..439e250 100644 --- a/star.py +++ b/star.py @@ -1,9 +1,9 @@ # 上节课你是这样绘制的五角星👇: # 这节课你可以利用新学的知识自定义五角星的颜色么? import turtle - +color=input("color") pen = turtle.Pen() -pen.fillcolor("red") #内部填充红色 +pen.fillcolor(color) #内部填充红色 #绘制五角星# pen.begin_fill() for i in range(5): #重复执行5次 -- libgit2 0.25.0