猫史档案馆


闲得无聊,用python画个太极

用户:一个初级高手一个初级高手查看:2 回复:3 评论:2 创建时间:2022-08-20T09:17:54


闲得无聊,基于turtle库,小试牛刀,画个太极给大家看看!;-) https://shequ.codemao.cn/work/158560833 画出来是这样的: 程序非常简单,大家自己看吧 fromturtleimport* importtime pensize(2) speed(5)#设置画笔速度 ht() pencolor("black") fillcolor("black") begin_fill() circle(100,180) circle(50,180) circle(-50,180) end_fill() circle(-100,180) up() goto(0,130) fillcolor("white") begin_fill() circle(20) end_fill() up() goto(0,30) fillcolor("black") begin_fill() circle(20) end_fill() time.sleep(5) https://shequ.codemao.cn/work/158560833


回复

上一页1 页 / 共 1下一页
一个初级高手一个初级高手

把代码补上!

from turtle import *
import time
pensize(2)
speed(5)    # 设置画笔速度
ht()

pencolor("black")
fillcolor("black")
begin_fill()
circle(100,180)
circle(50,180)
circle(-50,180)
end_fill()

circle(-100,180)

up()
goto(0,130)
fillcolor("white")
begin_fill()
circle(20)
end_fill()

up()
goto(0,30)
fillcolor("black")
begin_fill()
circle(20)
end_fill()

time.sleep(5)

图片:center_image

点赞0


评论


一个初级高手一个初级高手

作品页面:https://shequ.cod喵/work/158560833

点赞0


评论


山camellia茶山camellia茶

...

点赞0


评论