首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Python turtle我就是爱您

Python turtle我就是爱您

作者头像
喜欢ctrl的cxk
发布2019-11-08 21:03:27
3670
发布2019-11-08 21:03:27
举报
文章被收录于专栏:Don的成长史Don的成长史

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

                 本文链接:[https://blog.csdn.net/weixin\_42449444/article/details/86474427](https://blog.csdn.net/weixin_42449444/article/details/86474427) 

写在前面:

前面的博客已经用turtle画过玫瑰花?了,20爱您 520我爱您 9420就是爱您 59420我就是爱您。参考python123.io学习专栏里的turtle画图。

这段代码献给还在我丈母娘肚子里的未婚妻?。hhhhhh? 一切皆有可能哦。

import turtle as t
t.screensize(600,800,'lightskyblue')
t.pensize(10)
t.speed(10)
t.pencolor("red")  #我最喜欢的颜色,也是拜仁的颜色。
t.penup()
t.goto(-50,180)
t.pendown()
t.goto(50,180)
t.penup()
t.goto(-75,90)
t.pendown()
t.goto(75,90)
t.penup()
t.goto(-100,0)
t.pendown()
t.goto(100,0)
t.penup()
t.goto(-125,-90)
t.pendown()
t.goto(125,-90)
t.penup()
t.goto(-125,-180)
t.pendown()
t.goto(125,-180)
t.penup()
t.goto(-50,180)
t.pendown()
t.goto(-50,90)
t.penup()
t.goto(0,180)
t.pendown()
t.goto(0,90)
t.penup()
t.goto(50,180)
t.pendown()
t.goto(50,90)
t.penup()
t.goto(-75,90)
t.pendown()
t.goto(-75,0)
t.penup()
t.goto(-25,90)
t.pendown()
t.goto(-25,0)
t.penup()
t.goto(25,90)
t.pendown()
t.goto(25,0)
t.penup()
t.goto(75,90)
t.pendown()
t.goto(75,0)
t.penup()
t.goto(-100,0)
t.pendown()
t.goto(-100,-90)
t.penup()
t.goto(-50,0)
t.pendown()
t.goto(-50,-90)
t.penup()
t.goto(0,0)
t.pendown()
t.goto(0,-90)
t.penup()
t.goto(50,0)
t.pendown()
t.goto(50,-90)
t.penup()
t.goto(100,0)
t.pendown()
t.goto(100,-90)
t.penup()
t.goto(-125,-90)
t.pendown()
t.goto(-125,-180)
t.penup()
t.goto(-75,-90)
t.pendown()
t.goto(-75,-180)
t.penup()
t.goto(-25,-90)
t.pendown()
t.goto(-25,-180)
t.penup()
t.goto(25,-90)
t.pendown()
t.goto(25,-180)
t.penup()
t.goto(75,-90)
t.pendown()
t.goto(75,-180)
t.penup()
t.goto(125,-90)
t.pendown()
t.goto(125,-180)
t.penup()
t.goto(-50,150)
t.pendown()
t.goto(-25,150)
t.penup()
t.goto(-25,120)
t.pendown()
t.goto(0,120)
t.penup()
t.goto(25,150)
t.pendown()
t.goto(25,120)
t.penup()
t.goto(-75,30)
t.pendown()
t.goto(-50,30)
t.penup()
t.goto(-50,60)
t.pendown()
t.goto(0,60)
t.penup()
t.goto(0,30)
t.pendown()
t.goto(25,30)
t.penup()
t.goto(50,60)
t.pendown()
t.goto(50,30)
t.penup()
t.goto(-75,-20)
t.pendown()
t.goto(-75,-30)
t.penup()
t.goto(-100,-50)
t.pendown()
t.goto(-75,-50)
t.goto(-75,-70)
t.penup()
t.goto(-25,0)
t.pendown()
t.goto(-25,-55)
t.penup()
t.goto(-50,-80)
t.pendown()
t.goto(-25,-80)
t.penup()
t.goto(-4,0)
t.pendown()
t.goto(-4,-55)
t.penup()
t.goto(-4,-80)
t.pendown()
t.goto(-4,-90)
t.penup()
t.goto(0,-30)
t.pendown()
t.goto(25,-30)
t.penup()
t.goto(25,-60)
t.pendown()
t.goto(50,-60)
t.penup()
t.goto(75,-30)
t.pendown()
t.goto(75,-60)
t.penup()
t.goto(-125,-150)
t.pendown()
t.goto(-100,-150)
t.penup()
t.goto(-100,-120)
t.pendown()
t.goto(-75,-120)
t.penup()
t.goto(-50,-110)
t.pendown()
t.goto(-50,-120)
t.penup()
t.goto(-75,-145)
t.pendown()
t.goto(-50,-145)
t.goto(-50,-165)
t.penup()
t.goto(0,-90)
t.pendown()
t.goto(0,-145)
t.penup()
t.goto(-25,-170)
t.pendown()
t.goto(0,-170)
t.penup()
t.goto(21,-90)
t.pendown()
t.goto(21,-145)
t.penup()
t.goto(21,-170)
t.pendown()
t.goto(21,-180)
t.penup()
t.goto(25,-120)
t.pendown()
t.goto(50,-120)
t.penup()
t.goto(50,-150)
t.pendown()
t.goto(75,-150)
t.penup()
t.goto(100,-120)
t.pendown()
t.goto(100,-150)
t.penup()
t.goto(200,-250)
t.hideturtle()
t.exitonclick()
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-01-14 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 写在前面:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档