From 41f4e9f471444ad8c44c5ca49787b2f7d7810ff0 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Tue, 3 Nov 2020 14:28:29 +0800
Subject: [PATCH] save project

---
 star.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/star.py b/star.py
index 16fede3..9ef9cba 100644
--- a/star.py
+++ b/star.py
@@ -11,3 +11,16 @@ for i in range(5): #重复执行5次
     pen.right(144)  #向右移动144度,注意这里的参数一定不能变
 pen.end_fill() #结束填充红色
 turtle.done()
+# 答案
+import turtle
+
+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()
\ No newline at end of file
--
libgit2 0.25.0