程序猿是怎么表白的
Hi Dear,要看看我的代码吗?不看怎么知道我爱你!
程序猿是怎么表白的?当然也离不开敲代码啦!
就缺个懂代码的女朋友了。。。
零.一行代码输出一个心
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)]))
python -c "print('\033[35m'+'\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)])+'\033[0m')"
一.我的世界只有太阳、月亮和你
/**
* I love three things in this world.Sun, moon and you. Sun for morning, moon for night, and you forever.
*/
class LoveThreeThings extends Me
{
const loveFirstThings = 'Sun';
const loveSecondThings = 'Moon';
const loveThirdThings = 'You';
public function MyLove()
{
return 'I Love' . self::loveThirdThings . 'forever. Never change!';
}
}
二.百年好合
while('ILoveyou'):
for IBeWithYou in range(0,50*365):
time.sleep(60*60*24)
//程序能一直执行,执行完50年,若我们还有50年,余生继续。
//从前的日色变得很慢
//车马邮件都慢
//一生只够爱一人
三.谁都不能掌控全世界,但你至少可以掌控我,这是我的温柔
world.controlledBy(NoOne)
withMyGentle() {
you.control(me).equals(true)
}
//谁都不能掌控全世界,但你至少可以掌控我,这是我的温柔
四.若爱,请深爱
if(love ==1) {
while(1) {
love_depth ++;
}
}
五.将我手上的温度全部给予你,换取你幸福的脸庞
if(you.hand==cold&&weather==winter): //如果冬天里你的手是冰冷的
giveyoulove(myhand.temp,yourhand.temp); //将我手上的温度全部给予你
return you.happyface; //换取你幸福的脸庞
六.我一直在找你,当我找到你,也就找到了整个世界
while (i.findYou()) {
if (i.get() == you) {
System.out.print("Hello,Word!");
}
}
七.如果彼此相爱,那就白头偕老
if(you.love(me) && I.love(you)){ // 如果彼此相爱
this.liveToOld();// 那就白头偕老
}else{// 否则
this.bestWishesToYou(); // 祝你一切安好
}
八.陪伴是最长情的告白
StringBuilder love = newStringBuilder("");
for(;;){
love.append(Math.random()>0.5?1:0);
}
九.自从遇见你,就不停地想你
public void missing_you(meet_you)
int time = 0
for(time=meet_you;;time++){
missing_you();
}
十.你若不来,我便不弃
public Me waitYou(){
if(!appear){
this.waitYou();
}else{
this.waitYou();
}
}
十一.听说你要走,站在雨里,任凭身体被水珠撕裂成一个个没有意义的字母
public void hearYouLeave(){
String body = myself.toString();
body.split(".");
}
十二.每一世,我都会在这等你!就算容颜变迁,就算时光流转
public Me findYou(){
for(int age = 0;age <= 120; age++){
try{
Thread.sleep(60);
if(this.waitMyLove() != null){
return this.waitMyLove();
}cache(InterruptedException e){
System.out.println("Time is nothing...");
}
}
return null;
}
十三.待更新
待更新...
- 参考资料:
如何用你的专业来表白?