Commit 72731038 by BellCodeEditor

auto save

parent 623fb1a6
Showing with 45 additions and 0 deletions
# def add(*a):
# z = 0
# for i in a:
# z = z + i
# return z
\ No newline at end of file
import turtle
pen = turtle.Pen()
pen.shape("turtle")
pen.fillcolor("red")
pen.begin_fill()
pen.forward(100)
pen.left(90)
pen.forward(100)
pen.end_fill()
pen.pu()
pen.goto(-100,0)
pen.pd()
pen.circle(100)
turtle.done()
\ No newline at end of file
""" """
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
import turtle
pen = turtle.Pen()
for i in range(5):
pen.forward(100)
pen.right(144)
pen.pu()
pen.goto(-100,100)
pen.pd()
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(100)
pen.right(144)
pen.end_fill()
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