Commit b729bd71 by BellCodeEditor

save project

parent 2cdaf518
Showing with 11 additions and 10 deletions
""" """
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
"""
请使用turtle模块画出五角星
"""
import turtle import turtle
t=turtle.Pen() t=turtle.Pen()
t.fd(100) t.color("red")
t.rt(144) t.fillcolor("red")
t.fd(100) t.begin_fill()
t.rt(144) for i in range(5):
t.fd(100) t.fd(100)
t.rt(144) t.rt(144)
t.fd(100) t.end_fill()
t.rt(144)
t.fd(100)
t.rt(144)
turtle.done() turtle.done()
\ 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