热门

最新

红包

立Flag

投票

同城

我的

发布
huluwajiubaba_
huluwajiubaba_
4 年前
truehuluwajiubaba_

在python里学了一个空心五角星,大家可以自己试一试哦
代码:
import turtle as t
t.bgcolor("red")
t.speed(10)
t.width(6)
t.pencolor("yellow")
t.fillcolor("red")
t.begin_fill()
t.fd(100)

for i in range(4):
t.right(144)
t.fd(100)
t.left(72)
t.fd(100)
t.right(144)
t.fd(100)
t.end_fill()

CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
前端开卷
立即登录