From 226acd38f786ade386a31d739d009c217a868857 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 12 May 2024 13:42:01 +0800
Subject: [PATCH] save project

---
 star.py | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/star.py b/star.py
index 8cd3639..4c7d656 100644
--- a/star.py
+++ b/star.py
@@ -1,12 +1,10 @@
-# 上节课你是这样绘制的五角星👇:
-# 这节课你可以利用新学的知识自定义五角星的颜色么?
 import turtle
-ink = input("什么色?")#绘制五角星#
-pen = turtle.Pen()
-pen.fillcolor(ink)
+pen=turtle.Pen()
+color=input("输入颜色:")
+pen.fillcolor(color)
 pen.begin_fill()
-for i in range(5): #重复执行5次
-    pen.forward(200) #向前移动200步
-    pen.right(144)  #向右移动144度,注意这里的参数一定不能变
-pen.end_fill() #结束填充红色
-turtle.done()
+for i in range (5):
+    pen.forward(200)
+    pen.right(144)
+pen.end_fill()
+turtle.done()
\ No newline at end of file
--
libgit2 0.25.0