Python之trutle库-五角星
Python之trutle库-五角星
#!/usr/bin/env python
# coding: utf-8
# Python turtle库官方文档:https://docs.python.org/2/library/turtle.html
import turtle as t
t.color('red', 'red')
t.begin_fill()
for i in range(5):
t.fd(200)
t.rt(144)
t.done()
t.end_fill()