Commit cf153448 by BellCodeEditor

auto save

parent 6f4a3508
Showing with 4 additions and 3 deletions
import turtle import turtle
a = input("请输入想要的颜色:") a = input("请输入想要的颜色:")
pen = turtle.Pen() pen = turtle.Pen()
turtle.pencolor(a) pen.fillcolor(a)
turtle.begin_fill() pen.begin_fill()
for i in range(3): for i in range(3):
pen.forward(100) pen.forward(100)
pen.left(120) pen.left(120)
turtle.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