catalogue
2, The stars and the sea are you
Complete free source code collection:
Some previous Tuttle articles recommend:
Introduction
I wrote a confession code before, so Muzi found a lot of copywriting and materials. Sure enough?
Girls always have a special preference for these copywriters!
Therefore, Xiaobian will continue to write a lot of stories about confession ~ ⋆ • ☽ October 2021 ✯ ⋆ • ⋆
The most romantic quotation in October is incisive, distracted and never tired of seeing! Cough, coughOf course, the confession code collection written today is not bad!
"I still like you very much. I like you very much, like a whale sinking on the bottom of the sea, breathing gently, crazy and angry."
The whole sentence is:
I still like you very much. I walked eight thousand miles like the wind and didn't ask about my return date.
I still like you very much, like a whale sinking at the bottom of the sea, breathing gently, crazy and angry.
I still like you very much. Willows move, cicadas chirp, sunsets and tides. I can't help myself.
—— 2021.10.08 girl 🐾
"Other people are the stars on their heads and the waiting geese moving south. You are different."
The whole sentence is:
Other people are the stars on their heads and the waiting geese moving south. You are different.
You are an old Li Weng, a voice left after autumn,
It's a time when everything is beautiful. Take one and wear it on your chest.
—— 2021.10.08 boy 🐾
text
👇 What if there is no object?
Enter the production of confession code immediately 👇
1, Introduction
This paper is related to various aspects ♥ There are a total of 10 small confession projects! Like a little attention Oh ~ jomi!
2, The stars and the sea are you
1) Part 1 confession
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 effect drawing
2) Part 2 confession
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 renderings
3) Part 3 confession
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 renderings
4) Part 4 confession
import turtle as t def heart(x,y,z): # Draw love t.pensize(2) t.pencolor("black") if z == 1: t.fillcolor("red") elif z == 0: t.fillcolor("pink") t.begin_fill() #Left half t.penup() t.goto(x,y) t.pendown() t.circle(50,180) t.circle(180,37) t.left(46) #Right half 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 renderings
5) Part 5 confession
hey! Is there a little problem with the previous code~
That's a small pit for everyone! The later code is not put on it. There are more!
Unify all the codes at the end of the text and take them for free! Of course, I can figure out where there are code errors. It's better to modify them myself! That means you're learning well~
5.1 renderings
5.2 renderings
6) Part 6 confession
How to cheat my little sister's heart? Hahaha - above.
6.1 effect drawing
summary
"Don't ask me why I write so much confession code - ask again - I miss you - we all take it off!"Great.jpg
Don't thank me too much ~ just praise what I like and pay attention to it ~ ha ha
Complete free source code collection:
Your support is my biggest motivation!! Remember the third company ~mua Welcome to read previous articles~