• Python,turtle库中填充颜色为什么没有在规定的区域内?
  • python

初学者,数据都是自己拼凑的,这是我的代码,真的不会了
from turtle import*
color("red","yellow")#
speed(50)
begin_fill()
while True:
forward(200)
left(170)
if abs(pos())<1:
break
end_fill()
penup()
goto(90,-45)
pensize(3)
pencolor("green")
pendown()
seth(270)
fd(26)
circle(-100,40)
circle(200,45)
color("green","green")
begin_fill()
penup()
goto(45,-170)
pendown()
seth(320)
circle(77,99)
penup()
goto(45,-170)
pendown()
seth(59)
circle(-77,99)
penup()
goto(45,-170)
pendown()
seth(221)
circle(-77,99)
penup()
goto(45,-170)
pendown()
seth(120)
circle(77,99)
end_fill()

  • vicky    2020-03-17 11:29:51
  • 阅读 885    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信