用Python画一颗红星

话不多说,上图!!!

用Python画一颗红星_第1张图片

import turtle as tt
tt.penup()
tt.left(90)
tt.fd(200)
tt.right(90)
tt.pendown()
tt.begin_fill()
tt.color("red")
tt.right(72)
tt.fd(150)
tt.left(72)
tt.fd(150)
tt.right(144)
tt.fd(150)
tt.left(72)
tt.fd(150)
tt.right(144)
tt.fd(150)
tt.left(72)
tt.fd(150)
tt.right(144)
tt.fd(150)
tt.left(72)
tt.fd(150)
tt.right(144)
tt.fd(150)
tt.left(72)
tt.fd(150)
tt.end_fill()
tt.hideturtle()
tt.done()

 小白求点赞,会继续努力哟~

你可能感兴趣的:(python精通调包之路,python)