Commit 08b9d862 by BellCodeEditor

save project

parent cc741211
Showing with 17 additions and 16 deletions
"""
""" """
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
import turtle import turtle
pen=turtle.Pen() ink = input("什么色")
pen.shape("turtle") pen=turtle.Pen()
pen.fillcolor("red") pen.shape("turtle")
pen.begin_fill() pen.fillcolor(ink)
for i in range(360): pen.begin_fill()
pen.forward(20) for i in range(36):
pen.right(1) pen.forward(200)
pen.end_fill() pen.right(170)
pen.hideturtle() pen.end_fill()
turtle.done() pen.hideturtle()
turtle.done()
\ No newline at end of file \ No newline at end of file
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