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