python利用turtle绘制扇形

绘制扇形

程序如下

import turtle as t
t.setup(650,650)
t.pencolor("green")
t.pensize(2.5)
t.fd(300)
t.left(90)
t.circle(300,120)
t.left(90)
t.fd(300)
t.done()

运行结果

发布了42 篇原创文章 · 获赞 1 · 访问量 2707

猜你喜欢

转载自blog.csdn.net/qq_40253803/article/details/104749563
今日推荐