Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How does java realize New year's greetings?

Shulou Source: shulou.com Published: 2022-05-31 11:54:46 10月05日 Update

Today, the editor will share with you the relevant knowledge points about how java can achieve New year's greetings. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

From datetime import datetime

Import pprint

Pp = pprint.PrettyPrinter ()

Def Happy_New_year ():

Now = datetime.now ()

This_year = now.year

Day = 1

While this_year = = 2018:

Pp.pprint ("Day {} 2018: health, Progress!" .format (day))

Day + = 1

If day > 365:

Exit (1)

If _ name__ = = "_ _ main__":

Happy_New_year ()

These are all the contents of the article "how to achieve New year's greetings in java". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Tags: Knowledge articles blessings content different big healthy most that is year more knowledge points industry information information channels logic face channels Tiandu reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Microsoft Docker Shulou Information Linux