資源簡介
代碼片段和文件信息
import?turtle?as?t
colors?=?[‘red‘‘purple‘‘blue‘‘green‘‘yellow‘‘orange‘]
t.up()
t.goto(00)
t.down()
for?x?in?range(6):
????t.forward(50)
????t.left(60)
t.right(120)
t.begin_fill()
t.fillcolor(colors[0])
t.pencolor(colors[0])
for?x?in?range(6):
????t.forward(50)
????t.left(60)
t.end_fill()
t.begin_fill()
t.fillcolor(colors[1])
t.pencolor(colors[1])
for?x?in?range(5):
????t.forward(50)
????t.right(60)
t.end_fill()
t.right(120)
t.begin_fill()
t.fillcolor(colors[2])
t.pencolor(co
評論
共有 條評論