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


相关推荐

  • 台式机dp接口_电脑里这些不常用的接口你都知道啥功能吗?

    【1、五彩斑斓的音频接口】主板厂商设定的机箱后置接口(主板的背部I/O接口)总是五彩斑斓,其中像USB2.0/3.0接口、RJ-45有线网络接口、各式各样的显示输出接口(VGA、DVI、HDMI、DP等)、音频接口都是最常用的。但这个音频接口有辣么多种颜色,都是干嘛的呢?绝大部分主板一般只会设置右边三个孔,少部分主板会给完整的5~6个,每个孔颜色不一样,代表的功能也不一样。绿色孔对于主流音箱而言…

    2022年4月9日
    137
  • IdentityServer4总结[通俗易懂]

    IdentityServer4总结[通俗易懂]一.客户端模式客户端模式只对客户端进行授权,不涉及到用户信息。如果API需要提供到第三方应用,第三方应用自己做用户授权,不需要用到用户资源,就可以用客户端模式,只对客户端进行授权访问api资源。1.添加客户端newClient(){ClientId=”apiClientCd”,//客户端IdClientSecrets={newSecret(“apiSecret”.Sha256())},//客户端密码AllowedGrantTypes=GrantTypes.

    2025年6月29日
    4
  • iOS5.1.1完美越狱教程

    iOS5.1.1完美越狱教程pod2g和绿毒都没有食言,iOS 5.1.1完美越狱工具在北京时间5月25日晚20点30分出现在了绿毒的官方上。与上次不同的是,本次越狱一口气发了三个版本——OS X、Windows、以及linux,狱友们不用再熬夜了!本次越狱所支持的设备:- iPad3 (WiFi/CDMA/Global)- iPad2 (WiFi/CDMA/GSM)- iPad1- iPhone

    2022年6月3日
    41
  • WebSocket :用WebSocket实现推送你必须考虑的几个问题

    WebSocket :用WebSocket实现推送你必须考虑的几个问题目录:目录WebSocket简介项目背景硬件环境及客户端支持本文研究内容基于javaxwebsocket服务端代码源码后续补充git连接客户端代码问题探索如何做到支持几千个client同时在线人数后续1.WebSocket简介WebSocket_百度百科2.项目背景、硬件环境及客户端支持本项目通过WebSocket实现同时在线用户量5k推送服务器(可内网运行)。且可实时查看用户在线状

    2022年7月15日
    22
  • datagridview 自定义格式_怎么用有效样式建立目录

    datagridview 自定义格式_怎么用有效样式建立目录GridView是很便利的数据控件,在MIS中的应用很广泛,其样式编写很简单,但是每次新增都要重新编写,工作很是烦琐,而且由于其本身的特性,样式并不好编写,最好的办法就是在单双行、Header、Pager、Footer等栏目引用单独的样式,如下:

    2025年11月23日
    4
  • ICE初识

    ICE初识
    ICE:InternetCommunicationsEngine
    一种适用于异种环境的面向对象中间件平台
    他为我们提供了除DCOM,CORBA,JAVARMI,.NETRemoting,WebService,SOAPRPC以外的一种远程调用方式。
    更重要的是ICE是一种跨操作系统跨语言的远程调用方式(支持.NET1.1MONO1.0)。

    主页在:http://www.zeroc.com/index.html

    2022年6月1日
    34

发表回复

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

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