父爱如山,深情似海——你的代码像诗一样

父亲节,每年6月的第三个星期天。 父爱如山,我们却可以有独特的方式来表达我们的爱。 这是一首用我们熟悉的代码书写的诗,小数把它献给程序员父亲以及成为父亲的程序员们,祝您节日快乐!

#!/usr/bin/env python
import datetime
import time

class Masterpiece(object):
"""God makes this masterpiece""" //上帝想要创造一件杰作
import datetime
import time

class Masterpiece(object):
"""God makes this masterpiece""" //上帝想要创造一件杰作

def __init__(self):

    self.strength = "The strength of a mountain" //山一样有力
    self.majesty = "The majesty of a tree" //树一样威严
    self.warmth = "The warmth of a summer sun" //阳光般温暖
    self.calm = "The calm of a quiet sea" //海一样静谧
    self.soul = "The generous soul of nature" //大自然般慷慨的灵魂
    self.arm = "The comforting arm of night" //夜晚安抚的臂膀
    self.wisdom = "The wisdom of the ages" //岁月的智慧
    self.power = "The power of the eagle's flight" //雄鹰翱翔的力量
    self.joy = "The joy of a morning in spring" //春天清晨的喜悦
    self.faith = "The faith of a mustard seed" //破土的信仰
    self.patience = "The patience of eternity" //永恒的耐心
    self.depth = "The depth of a family need" //家庭深厚的支撑

@property
def live_forever(self):
    return True

Dad = Masterpiece() //这个美好的杰作便是父亲

def time_goes_on(): //时光流逝

while Dad.live_forever:

    """ 
    Fathers young, fathers old //年轻的父亲逐渐老去
    Remembering good times are our gold //那些美好的时光是我们的财富
     Value earned through guidance given //他给予我们指引
    Helping us go forth in living //让我们更好地生活
    """


    if datetime.datetime.now().strftime("%Y-%m-%d") == '2016-06-19':
        print("""
            Happy Father's Day! // 父亲节快乐!
            thanks for all you do! //感谢您为我做的一切!
            and I love you first of all! //我最爱您!
         """)
    time.sleep(24*60*60)

if __name__ == "__main__":

time_goes_on()