Commit d1d2bd10 by BellCodeEditor

auto save

parent 2807342a
Showing with 6 additions and 5 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
name = input("你想要什么颜色的三角形?") name = input("你想要什么颜色的三角形?")
t.fillcolor(name) pen.fillcolor(name)
t.begin_fill() pen.begin_fill()
for i in range(3) for i in range(3)
t.fd(90) pen.fd(90)
t.right(120) pen.right(120)
t.end_fill() pen.end_fill()
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