Commit f2a36d29 by BellCodeEditor

save project

parent 623fb1a6
Showing with 17 additions and 3 deletions
""" # 请使用turtle模块画出五角星
请使用turtle模块画出五角星 import turtle
""" def main():
t = turtle.Turtle()
t.hideturtle()
lengthOfSize = 200
drawFivePointStar(t,0,0,lengthOfSize)
def drawFivePointStar(t,x,y,lengthOfSize):
t.up()
t.goto(x,y)
t.left(36)
t.down()
for i in range(5):
t.forward(lengthOfSize)
t.left(144)
main()
\ 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