程序员是这样祝母亲节日快乐的

2021-05-13 11:32:58 浏览数 (1)

母亲,节日快乐,今天周日,这会我正在屏幕前写代码,借用这个公众号,向您说声:我爱你。祝天下所有的母亲节日快乐

Make Your Mama Proud

别看程序员平时不怎么说话,真的表达起对母亲的爱的方式也是别具一格。 看看程序员在代码中敲出的爱:

代码语言:javascript复制
public class MothersDay { 
  private String sayToMother = ""; 
// 假设人类活着平均年龄为80岁,我们希望是永远+∞ 
  private static final int liveMaxAge =80; 
// 我们刚出生的时候 
  private int age = 0; 
  public MothersDay() { 
    fromBornToOld(); 
  } 
/** 
* 从出生到长大 
*/ 
  private void fromBornToOld() { 
  // 呱呱坠地,我们用哭的方式,面对这个世界,以及心疼母亲生我们的痛苦 
   sayToMother = "crying......"; 
   while (isPeopleStillLive()) { 
    switch (age) { 
     case 0: 
       sayToMother = "crying......"; 
     break; 
     case 1: 
       sayToMother = "想对经常被我弄醒的妈妈说:谢谢你对我的照顾,给我洗尿布,给我的爱"; 
     break; 
     case 3: 
       sayToMother = "虽然我整天翻箱倒柜,把家里弄的一团糟,但是天真的我,真的很爱我妈妈"; 
     break; 
     case 7: 
       sayToMother = "之前是不懂事,没长大,到了七岁八岁万人嫌的时候,整天惹妈妈生气,调皮捣蛋"; 
     break; 
     case 666: 
       sayToMother = "关注程序员小饭公众号,置顶/星标哦!hhh"; 
     break; 
     case 10: 
       sayToMother = "听妈妈的话,开始读书学习"; 
     break; 
     case 16: 
       sayToMother = "妈妈你真的很烦人,天天就知道唠叨"; 
     break; 
     case 18: 
       sayToMother = "成人了,真想快点离开这个整天烦人,唠叨的家?"; 
     break; 
     case 25: 
       sayToMother = "妈妈,您当时是对的,感谢您的教诲和唠叨"; 
     break; 
     case 30: 
       sayToMother = "带上孩子和媳妇,说:走,去看看咱妈"; 
     break; 
     case 40: 
       sayToMother = "妈妈,我来照顾您,别再为我操劳了"; 
     break; 
     case 50: 
       sayToMother="时光时光慢些吧 不要再让您再变老了"; 
     break; 
     case 60: 
       sayToMother = "希望能和您永远在一起,妈,您别离开我好吗?"; 
     break; 
     case liveMaxAge: 
       sayToMother = "我愿用一切,换您岁月长留"; 
     break; 
     default: 
       sayToMother = age "岁的我说:…………(期待全是陪伴,父母要求的不多,陪伴才是最好的爱❤️)"; 
     break; 
 } 
   System.out.println(sayToMother); 
   try { 
     Thread.sleep(365*24*60*60*1000L); 
   } catch (InterruptedException e) { 
   //无言的痛,我相信程序员都明白这是什么意思(白发人送黑发人) 
   e.printStackTrace(); 
   } 
   // 岁月如梭 
   age  ; 
   } 
}
  // 活着 
  public boolean isPeopleStillLive() { 
    return age==liveMaxAge ? false : true; 
  }

  public static void main(String[] args) { 
    new MothersDay(); 
  }

今天是母亲节,记得陪妈妈吃顿饭~不在妈妈身边的,再忙也记得打个电话给她呀。

代码语言:javascript复制

0 人点赞