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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • ESLint简介

    ESLint简介一ESLint简介ESLint是一个语法规则和代码风格的检查工具,可以用来保证写出语法正确、风格统一的代码。不管是多人合作还是个人项目,代码规范是很重要的。这样做不仅可以很大程度地避免基本语法错误,也保证了代码的可读性。这所谓工欲善其事,必先利其器,推荐ESLint+vscode来写vue,有种飞一般的感觉。每次保存,vscode就能标红不符合ESLint规则的地方,同时还会做一些简单的自我修正。二启用ESLint1ESLint插件安装vscode的ESLint插件,

    2022年6月18日
    27
  • cv2 imread()函数[通俗易懂]

    Reason    这两天学习OpenCV-Python时,也就是cv2库,读取图像时不时出现和预料之外的结果。于是作者从源头来考究一下cv2.imread(filename,flags)Result这里参考文章cv2.imread(filename,flags)cv2.imread(filename,flags)参数:filepath:读入imge的完整路径flags:标志位,{cv2.IMREAD_COLOR,cv2.IMREAD_GRAYSC

    2022年4月14日
    59
  • MySQL呕血汇总–从基础到毕业【收藏篇】

    MYSQL目录前言一、MYSQL基础1.安装2.数据库介绍2.1.什么是数据库?2.2.实体(类)和表关系2.3.常见关系型数据库3.MYSQL基础操作❤重点❤3.1.启动关闭3.2.DDL(数据定义语言,这些语句定义不同的数据段、数据库、表、列、索引等数据库对象。常用语句关键字主要包括create,drop,alter等)3.2.1.操作数据库3.2.2.操作表3.3.DML(数据操作语句,用于添加、删除、更新和查询数据库记录,并检查数据完整性。常用语句关键字主要包括insert,delete,upda

    2022年4月9日
    26
  • Effective STL笔记

    Effective STL笔记

    2021年6月20日
    113
  • 织梦dedecsm系统”企业简介”类单栏目模版如何修改和调用

    织梦dedecsm系统”企业简介”类单栏目模版如何修改和调用

    2021年9月22日
    41
  • 增量表全量表拉链表区别_hive 增量数据更新

    增量表全量表拉链表区别_hive 增量数据更新一、概念增量表:记录更新周期内新增的数据,即在原表中数据的基础上新增本周期内产生的新数据;全量表:记录更新周期内的全量数据,无论数据是否有变化都需要记录;拉链表:一种数据存储和处理的技术方式,可以记录数据的历史信息,记录数据从开始一直到当前所有变化的信息。二、举例详解增量表:以页面访问数据表为例,假设该表从2020-06-01开始记录数据,按天更新,分区为dt。2020-06-01产生了三条访问数据,如下表:2020-06-02首页和商详页又产生了2条访问数据,该两条即为2020-06-

    2022年10月17日
    0

发表回复

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

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