Commit ffb22fad by BellCodeEditor

save project

parent acd0af09
Showing with 13 additions and 0 deletions
#答案
import turtle
pen = turtle.Pen()
color=print("你想要什么颜色的五角星")
pen.fillcolor(color)
#绘制五角星#
pen.begin_fill()
for i in rang(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
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