Commit 0463c94d by BellCodeEditor

save project

parent 1dc95df2
Showing with 5 additions and 2 deletions
...@@ -7,5 +7,8 @@ def draw5star(pen,fillcolor,length): ...@@ -7,5 +7,8 @@ def draw5star(pen,fillcolor,length):
pen.forward(length) pen.forward(length)
pen.right(144) pen.right(144)
pen.end_fill() pen.end_fill()
pen=turtle.pen color=input("请问要画什么颜色的五角星:")
draw5star(pen,"pink",150) length=int(input("请问五角星画多大:"))
pen=turtle.Pen()
draw5star(pen,color,length)
turtle.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment