前言
今天是2月14号 情人节!
很多年轻人会选择在这一天脱单。作为一个还没有脱光的宅男/腐女,看着别人双入对,你是吗?
我心里有点失落?那么,在摆脱单身时间优势的情况下,如何表达自己的感受,以免一个人过节呢?
呢?!收集了几种最有创意的程序员代码表达方式,祝大家收获愉快!
两天前,我看到三首情诗:世界上有两种罪恶,你笑是一种,你不笑是另一种!
一旦有了喜欢的人,生活就无处不在了TA影子。眼睛看,耳朵听,梦,
都是那个人...情人节来了,好机会来了!
不过,告白可是一个技术活哦。想要一句话正中对方的下怀,一次告白就成功,就要单独为对方准
准备一个套路。虽然没有套路是绝对不可能的,但套路真的不是万能的。因为不同的人喜欢不同的情话,
比如女汉子不吃文艺青年,程序员对风花雪月视而不见,要对症下套。
看看叭??
正文
栗子文案馆
我最喜欢的忏悔来自三毛和荷
西,平静的语言让我的心沸腾。
荷西:你一定要嫁个有钱人吗?
三毛:如果我不爱他,他就是百万富翁,我也不会结婚。如果我爱他,我也会嫁给他。
说到这里,你还是要嫁给有钱人。
三毛:也有例外。
如果和我在一起呢?
三毛:只要了就算了。
荷西想了想:你吃多了吗?
三毛很小心的回答:不多,不多,以后可以少吃。
这种告白令人心碎,那么接下来的告白文案和代码可能会刺穿你的心~
二、实现代码
1)效果展示
2)效果展示
代码展示
import turtle as t t.setup(800,800) t.hideturtle() t.speed(11) t.penup() t.goto(50,-450) t.pensize(5) t.pencolor("black") t.seth(140) t.pendown() t.speed(10) t.circle(-300,60) t.fd(100) #叶子 t.seth(10) t.fd(50) t.fillcolor("green") t.begin_fill() t.right(40) t.circle(120,80) t.left(100) t.circle(120,80) t.end_fill() t.seth(10) t.fd(90) t.speed(11) t.penup() t.fd(-140) t.seth(80) #一片叶子 t.pendown() t.speed(10) t.fd(70) t.seth(160) t.fd(50) t.fillcolor("green") t.begin_fill() t.right(40) t.circle(120,80) t.left(100) t.circle(120,80) t.end_fill() t.seth(160) t.fd(90) t.speed(11) t.penup() t.fd(-140) t.seth(80) t.pendown() t.speed(10) # t.fd(100) #花瓣 t.seth(-20) t.fillcolor("black") t.begin_fill() t.circle(100,100) t.circle(-110,70) t.seth(179) t.circle(223,76) t.end_fill() #2花瓣 t.speed(11) t.fillcolor("pink") t.begin_fill() t.left(180) t.circle(-223,60) t.seth(70) t.speed(10) t.circle(-213,15)#55 t.left(70)#125 t.circle(200,70) t.seth(-80) t.circle(-170,40) t.circle(124,94) t.end_fill() # t.speed(11) t.penup() t.right(180) t.circle(-124,94) t.circle(170,40) t.pendown() t.speed(10) t.seth(-60) t.circle(175,70) t.seth(235) t.circle(300,12) t.right(180) t.circle(-300,12) t.seth(125) t.circle(150,60) t.seth(70) t.fd(-20) t.fd(20) t.seth(-45) t.circle(150,40) t.seth(66) t.fd(-18.5) t.fd(18.5) t.seth(140) t.circle(150,27) t.seth(60) t.fd(-8) t.speed(11) t.penup() t.left(20.8) t.fd(-250.5) #3花瓣 t.pendown() t.speed(10) t.fillcolor("black") t.begin_fill() t.seth(160) t.circle(-140,85) t.circle(100,70) t.right(165) t.circle(-200,32) t.speed(11) t.seth(-105) t.circle(-170,14.5) t.circle(123,94) t.end_fill()
总结
这两个程序或文案已经绑到你身了吗?~
如果我的世界不能成为你的世界,我会把你的世界变成我的世界。嘻嘻代码准备好了,等你
来??
还有更多的源码等着你来领区!
以前推荐阅读——
项目0.1【Opencv素描,画出感觉,比如这样画:画什么都好看(建议保存)
项目0.2【Opencv实战废片变宝,如何调出烟雨油画的效果?试试这个特效,太棒了
项目0.3【Opencv实战】美容模式,开启:美容功能这么强大吗?(群魔乱舞.jpg)
项目0.4【Opencv实战】朋友圈的特效人物动画是什么?今天我教你举起姿势——网友狂喜:我要学习,不要阻止我
文章汇总——
汇总:Python文章合集 | (入门到实战,游戏,Turtle、案例等)
(有更多的案例等着你学习。~可以免费找到源码!