1 2 3 4 5 6 7
| double world; unsigned letter; short stay; long memories; long long ago; float cloud; printf("I miss you.\n");
|
1 2 3 4
| for (everynight in mydreams) { i.see(you); i.feel(you); }
|
1
| select * from world where someone like '%you%';
|
Nothing is absolute.
1 2 3 4 5
| <style> * { position: relative; } </style>
|
物是人非事事休,欲语泪先流。
1 2 3 4 5 6 7
| (item && !people) everything = false; if (tears.setFlowing()) try { Speaker skr = new Speaker(); } catch { IOException e; } ()
|
先天下之忧而忧,后天下之乐而乐。
1 2 3 4 5 6
| if (others.rejoice() == true) { self.rejoice(); } else { self.worry(); }
|
寻寻觅觅,冷冷清清,凄凄惨惨戚戚。
1 2 3
| Seeking++; Loneliness++; (Misery++) + (Sadness++);
|
野火烧不尽,春风吹又生。
1 2 3 4 5 6 7 8 9
| while(true) { Grass *gr; if (springBreeze.isComing()) { gr = new Grass; } if (wildFire.isComing()) { delete gr; } }
|
假作真时真亦假,无为有处有还无。
1 2
| if (FALSE == true) TRUE = false; if (NULL == exist) exist = NULL;
|
欲穷千里目,更上一层楼。
1
| if (sight.getRange() <= 1000) building.level++;
|
明日复明日,明日何其多。我生待明日,万事成蹉跎。
1 2 3 4 5 6
| while (tomorrow.hasNext()) { howMany(tomorrow); tomorrow.next(); } this.wait(WHOLE_LIFE); return (null == everything) ? null : null;
|
路漫漫兮修远兮,吾将上下而求索。
1 2 3 4
| roadAheadEnding.isVisual = false; if (!spareEffort()) { i.searchWith(willUnbending); }
|
但愿人长久,千里共婵娟。
1 2 3 4 5
| - (BOOL)wish: (People *) longNine { BOOL km = YES; BOOL moon = YES; return km && moon; }
|
东风不与周郎便,铜雀春深锁二乔。
1 2 3 4 5
| if (!eastWind.help(zhouyu)) { season = spring; bronzeBird.lock(bigQiao); bronzeBird.lock(smallQiao); }
|
两岸猿声啼不住,轻舟已过万重山。
1 2 3 4 5
| while (true) { listen(Ape1Cry && Ape2Cry); Boat.pass(Mountain); if (Mountain > 10000) break; }
|
桃花潭水深千尺,不及汪伦送我情。
1 2 3
| peachFlowerLake.deep = 1000; if (peachFlowerLake.deep < wl.friendship) return true;
|
黑夜给了我黑色的眼睛,我却用它来寻找光明。
1 2 3 4
| eye = dark.poll(); if (eye.color == black) { eye.seek_for(bright); }
|
鱼和熊掌不可兼得。
笑渐不闻声渐悄,多情却被无情恼。
1 2 3
| laugh--; sound--; person(feeling > 999).bothered_by(person(feeling == 0));
|
举头望明月,低头思故乡。
1 2 3 4
| if (this.Head.SetDirection(TheMoon.GetInstance().Position)) { this.Head.SetDirection(GROUND_DIRECTION); this.ThinkAbout(this.OriginalPlace); }
|
一直在做程序员,直到膝盖中了一箭。
1 2 3 4 5 6 7 8
| while (true) { try { ActAs(Programmer); } catch (KneeTilledException e) { if (e.Weapon is Arror) break; } }
|
抽刀断水水更流,举杯消愁愁更愁。
1 2 3 4 5 6
| cutWater(getKnife()) { water++; } reduceWorry(toast) { worry++; }
|
驿寄梅花,鱼传尺素,砌成此恨无重数。
1 2 3
| while (received(friend.plumBlossom) && received(friend.letter)) { nostalgicThoughts++; }
|
总为浮云能蔽日,长安不见使人愁。
1 2 3 4 5
| while (cloudsHideSun == true) { if (!seeChangan) { self.worry(); } }
|
人生得意须尽欢,莫使金樽空对月。
1 2 3 4 5 6 7
| if (life.satisfied()) { while (happy--) { if (!goldenCup.empty() && moon.visible()) { goldenCup.fulfill(); } } }
|
苟利国家生死以,岂因祸福避趋之。
1 2
| dog(pear -> fruit).home.deliver(death, 1); flag in [ disaster, fortune ] -> () { pen.go(arguments[0]) };
|
以上内容大部分来源于微博:猜一宋词名句 - 程序员幽默
更多可参考:程序员如何用代码写一首诗?