目錄
導語
正文
一、簡介
二、星辰大海都是你
1)Part1 表白篇
?2)Part2 表白篇
3)Part3 表白篇
4)Part4 表白篇
5)Part5 表白篇
6)?Part6 表白篇
總結
完整的免費原始碼領取處:
往期部分Turtle文章推薦:
文章匯總——
導語
之前寫了一篇表白的代碼,所以木木子找文案找素材找了特別多嘛,果然啊?
女孩子遇到這些文案總是有種特別的偏愛!
??所以呀~小編還會繼續寫很多關于表白的故事呢~? ? ? ? 2021.10月 ? ? ? ?
十月最浪漫的語錄,精辟走心,百看不厭!咳咳咳.....
?當然今天寫的<表白代碼合集>也不差哈!??

“我還是很喜歡你,像風走了八千里,不問歸期,我還是很喜歡你,像鯨沉于海底溫柔呼吸,癡極嗔極,”
整句話是:
我還是很喜歡你,像風走了八千里,不問歸期,
我還是很喜歡你,像鯨沉于海底溫柔呼吸,癡極嗔極,
我還是很喜歡你,柳動蟬鳴,日落潮汐,不能自己,
——2021.10.08 女孩🐾

“其他人是頭頂星辰,是南遷候雁,你不一樣,”
整句話是:
其他人是頭頂星辰,是南遷候雁,你不一樣,
你是老潦笠翁,是秋隔遺音,
是百鮮正艷時,獨取一只,佩于胸前,
——2021.10.08 男孩🐾
正文
👇沒有物件怎么辦?

馬上進入表白代碼制作中👇
一、簡介
本文是各種涉及?的花樣表白,共有10個小表白專案合集啦!喜歡的點點關注哦~啾咪!

二、星辰大海都是你
1)Part1 表白篇
print('\n'.join([''.join([('Love'[(x-y) % len('Love')] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(30, -30, -1)]))
1.1效果圖

![]()
?2)Part2 表白篇
import turtle
t=turtle.pen()
t=turtle
t.up()
t.goto(0,150)
t.down()
t.color('pink')
t.begin_fill()
t.fillcolor('pink')
t.speed(1)
t.left(45)
t.forward(150)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(250+math.sqrt(2)*100)
t.right (90)
t.speed(2)
t.forward(250+100*math.sqrt(2))
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(150)
t.end_fill()
t.goto(-10,0)
t.pencolor('white')
#L
t.pensize(10)
t.goto(-50,0)
t.goto(-50,80)
t.up ()
#I
t.goto(-100,0)
t.down()
t.goto(-160,0)
t.goto(-130,0)
t.goto(-130,80)
t.goto(-160,80)
t.goto(-100,80)
t.up()
#O
t.goto(10,25)
t.down()
t.right(45)
t.circle(25,extent=180)
t.goto(60,55)
t.circle(25,extent=180)
t.goto(10,25)
t.up()
t.goto(75,80)
t.down()
t.goto(100,0)
t.goto(125,80)
t.up()
t.goto(180,80)
t.down()
t.goto(140,80)
t.goto(140,0)
t.goto(180,0)
t.up()
t.goto(180,40)
t.down()
t.goto(140,40)
#U
t.up()
t.goto(-40,-30)
t.down()
t.goto(-40,-80)
t.circle(40,extent=180)
t.goto(40,-30)
t.hideturtle()
a=input()
2.1效果圖

3)Part3 表白篇
import turtle as t
t.color('white','red')
t.begin_fill()
t.width(5)
t.left(135)
t.fd(100)
t.right(180)
t.circle(50,-180)
t.left(90)
t.circle(50,-180)
t.right(180)
t.fd(100)
t.pu()
t.goto(50,-30)
t.pd()
t.right(90)
t.fd(100)
t.right(180)
t.circle(50,-180)
t.left(90)
t.circle(50,-180)
t.right(180)
t.fd(100)
t.end_fill()
t.hideturtle()
t.pu()
t.goto(250,-70)
t.pd()
t.color('black')
t.width(5)
t.left(70)
t.fd(50)
t.fd(-50)
t.left(70)
t.fd(50)
t.fd(-50)
t.left(145)
t.fd(20)
t.left(145)
t.fd(50)
t.fd(-50)
t.left(70)
t.fd(50)
t.fd(-50)
t.left(145)
t.fd(20)
t.left(145)
t.fd(50)
t.fd(-50)
t.left(70)
t.fd(50)
t.fd(-50)
t.left(145)
t.width(3)
t.fd(220)
t.right(90)
t.pu()
t.fd(10)
t.pd()
t.left(90)
t.circle(10,180)
t.circle(10,-90)
t.right(90)
t.fd(-10)
t.pu()
t.fd(90)
t.left(90)
t.fd(10)
t.left(90)
t.pd()
t.circle(10,180)
t.circle(10,-90)
t.left(90)
t.fd(100)
t.begin_fill()
t.left(30)
t.fd(15)
t.right(35)
t.fd(50)
t.right(150)
t.fd(50)
t.right(62)
t.fd(25)
t.end_fill()
3.1效果圖

4)Part4 表白篇
import turtle as t
def heart(x,y,z): # 繪制愛心
t.pensize(2)
t.pencolor("black")
if z == 1:
t.fillcolor("red")
elif z == 0:
t.fillcolor("pink")
t.begin_fill() #左半邊
t.penup()
t.goto(x,y)
t.pendown()
t.circle(50,180)
t.circle(180,37)
t.left(46) #右半邊
t.circle(180,37)
t.circle(50, 182)
t.end_fill()
def arrow1(x,y):
t.pensize(5)
t.pencolor("black")
t.fillcolor("brown")
t.penup()
t.goto(x, y)
t.pendown()
t.setheading(210)
t.forward(150)
t.begin_fill()
t.left(30)
t.forward(20)
t.right(30)
t.forward(50)
t.right(150)
t.forward(20)
t.left(120)
t.forward(20)
t.right(150)
t.forward(50)
t.right(30)
t.forward(20)
t.end_fill()
def arrow2(x, y):
t.pensize(5)
t.pencolor("black")
t.fillcolor("brown")
t.penup()
t.goto(x, y)
t.pendown()
t.begin_fill()
t.setheading(30)
t.forward(100)
t.left(90)
t.forward(8)
t.right(120)
t.forward(16)
t.right(120)
t.forward(16)
t.right(120)
t.forward(8)
t.end_fill()
def main():
t.setheading(90)
heart(50, 130, 0)
t.setheading(120)
heart(0, 100, 1)
arrow1(-20, 60)
arrow2(100, 130)
t.hideturtle()
t.exitonclick()
if __name__ == "__main__":
main()
4.1效果圖

5)Part5 表白篇
嘿嘿!前面的代碼部分代碼是不是有一點點小問題呀~
那是專門留給大家的小坑哈!后面的代碼就不放在上面了比較多!
統一全部的代碼放在文末自己免費拿!當然能自己想出來哪兒有代碼錯誤,自己修改了更好!說明你學的很好啦~
5.1效果圖

5.2效果圖

6)?Part6 表白篇
如何騙小姐姐的心心呢?哈哈哈——上圖,
6.1效果圖

總結
“不要問我為什么寫這么多表白代碼——再問就是——我想你——們都脫單撒!”?
?偉大.jpg
不要太感謝我~喜歡的點點贊點點關注就可以啦~哈哈哈哈
![]()

完整的免費原始碼領取處:
如需完整的專案原始碼+素材原始碼基地見:#私信小編06#或者點擊藍色文字添加即可獲取免費的福利!
你們的支持是我最大的動力!!記得三連哦~mua 歡迎大家閱讀往期的文章哦~
往期部分Turtle文章推薦:
1.0Python超美表白代碼:“喜歡就去表白,做朋友有什么用,我又不缺朋友,我缺你呀! ”
1.0Python小程式:你看?這千年難遇的雪景—簡直“美到犯規”!【滿屏雪花飛舞!】
1.0Python表白代碼:太秀了,用過的人都找到了物件...【滿屏玫瑰盛開!】
1.0Turtle系列:震驚!給北方的朋友介紹一下,這是我們南方的雪花!!
文章匯總——
1.1Python—2021 |已有文章匯總 | 持續更新,直接看這篇就夠了~

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/337712.html
標籤:python
