python写出表白_简单python 表白代码

python写出表白_简单python 表白代码#导入模块importturtle#人turtle.penup()turtle.goto(-100,100)turtle.pendown()turtle.color(‘yellow’)turtle.setheading(55)turtle.circle(50,280)turtle.setheading(238)turtle.forward(145)turtle.setheading(-4…

大家好,又见面了,我是你们的朋友全栈君。

# 导入模块

import turtle

# 人

turtle.penup()

turtle.goto(-100, 100)

turtle.pendown()

turtle.color(‘yellow’)

turtle.setheading(55)

turtle.circle(50, 280)

turtle.setheading(238)

turtle.forward(145)

turtle.setheading(-45)

turtle.circle(165, 85)

turtle.setheading(120)

turtle.forward(175)

turtle.penup()

turtle.goto(-120, 120)

turtle.pendown()

turtle.forward(25)

turtle.penup()

turtle.goto(-100, 140)

turtle.pendown()

turtle.forward(10)

turtle.penup()

turtle.goto(-110, 105)

turtle.pendown()

turtle.setheading(15)

turtle.circle(10, 60)

turtle.penup()

turtle.goto(-145, -105)

turtle.pendown()

turtle.setheading(-90)

turtle.forward(50)

turtle.penup()

turtle.goto(-100, -105)

turtle.pendown()

turtle.setheading(-90)

turtle.forward(50)

turtle.penup()

turtle.goto(-80, 65)

turtle.pendown()

turtle.setheading(30)

turtle.forward(65)

turtle.circle(10, 70)

turtle.forward(5)

turtle.circle(8, 60)

turtle.setheading(60)

turtle.circle(-5, 90)

turtle.setheading(-80)

turtle.forward(10)

turtle.setheading(30)

turtle.forward(18)

turtle.circle(-2, 180)

turtle.setheading(-150)

turtle.forward(19)

for i in range(1, 4, 1):

turtle.setheading(30)

turtle.forward(4)

turtle.circle(-2.2, 180)

turtle.forward(4.2)

turtle.setheading(170)

turtle.circle(-10, 36)

turtle.setheading(210)

turtle.forward(75)

# 心

turtle.penup()

turtle.goto(70, 90)

turtle.pendown()

turtle.color(‘red’)

turtle.begin_fill()

turtle.fillcolor()

turtle.setheading(135)

turtle.forward(80)

turtle.circle(-40, 180)

turtle.setheading(45)

turtle.circle(-40, 180)

turtle.forward(80)

turtle.end_fill()

# 心中填字

turtle.penup()

turtle.goto(48, 155)

turtle.pendown()

turtle.color(‘yellow’)

turtle.write(‘I Love You’)

# 移动右下方填字

turtle.penup()

turtle.goto(200, -300)

turtle.pendown()

turtle.color(‘blue’)

turtle.write(‘喜欢是棋逢对手,但爱是甘拜下风!’)

turtle.hideturtle()

turtle.done()

标签:turtle,表白,python,代码,penup,setheading,pendown,forward,circle

来源: https://www.cnblogs.com/Redskaber/p/14290168.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/143943.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • python读取json文件内容_pythonjson检测新内容

    python读取json文件内容_pythonjson检测新内容教程前面章节曾介绍过JSON格式的数据,这种格式的数据通常会被转换为Python的list列表或dict字典。本节展示的是世界各国历年GDP总和,数据来源于https://datahub.io网站。数据格式如下:[{“CountryCode”:”ARB”,”CountryName”:”ArabWorld”,”Value”:25760683041.0857,”Y…

    2022年10月12日
    2
  • git clone与git pull区别

    git clone与git pull区别原地址最近一直焦虑换工作与面试,自然面试过程中也被问到了很多问题,在一家公司中,被问到了git相关的知识。面试官提出了gitclone与gitpull有什么区别。由于自己对git的掌握情况不是特别深入,感觉瞬间被问蒙圈一样。后来,查了相关的文档,看了一些文章,自己有了一丁点的理解,觉得应该…

    2022年7月21日
    14
  • spring整合mybatis步骤_spring整合了哪些框架

    spring整合mybatis步骤_spring整合了哪些框架配置redis.clients.jedis.JedisPool时报错如下:Causedby:org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname’jedisPool’definedinclasspathresource[beans.xml]:Couldnotresolvematchingconstructor(hint:specifyindex/typ.

    2025年9月13日
    6
  • updog:一款局域网传输文件的软件

    updog:一款局域网传输文件的软件前言不知道你是否有过这样的需求,在局域网传输文件,苦于没有好的软件支持,或者只能单向传输,updog可以完全解决这种问题安装pip3installupdogupdog是python中的一个第三方库使用updog这里注意updog要在可以读写的路径下面运行,否则访问会出错,或者启动就会报错如果你不想切换到路径去运行,也可以使用-d去指定一个可读写的目录optiona…

    2022年5月29日
    42
  • 我的 Java 自学之路[通俗易懂]

    我的 Java 自学之路[通俗易懂]其实在转正之后我就想抽个时间好好的梳理一下我的Java上车之路,但是一直拖到现在,因为有学弟问到,所以也就给了我动力。毕竟答应了人家的事要做到。首先要有相应的背景介绍,不然说个毛线啊,大家不在同一水平,不好参考借鉴。我呢,学校很牛逼,是一所刚过线的二本,自身的成绩在班里也就第8名左右吧(一共60个人),在大二的时候学校开设了Java这门课,我的期末考试…

    2022年7月7日
    21
  • conductor 系统任务

    conductor 系统任务动态任务 参数 dynamicTaskN 来自任务输入的参数的名称 其值用于调度任务 例如如果参数的值为 ABC 则调度的下一个任务类型为 ABC Example name user task taskReferenc t1 inputParamet files work

    2025年6月24日
    4

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号