py爱心图像

*使用海龟绘图***心,
解题思路:先画图再把画笔的痕迹drop掉,再填充颜色

from turtle  import *	
color('black','red')	
begin_fill()	
penup()	
goto (50,50)	
pendown()	
right(45)	
goto(100,0)	
left(90)	
fd(120)	
circle(50,225)	
penup()	
goto(0,0)	
pendown()	
left(135)	
fd(120)	
circle(50,225)	
seth(90)	
circle(50,225)	
fd(121)	
end_fill()	
left(56)	
penup()	
goto(-210,40)	
pendown()	
goto(0,80)	
penup()	
goto(160,110)	
pendown()	
goto(320,140)	
done()

#Python#
全部评论

相关推荐

10-30 16:31
重庆大学 Java
代码飞升_不回私信人...:你说你善于学习,大家都会说。你说你是985,985会替你表达一切
点赞 评论 收藏
分享
评论
2
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务