365:exit(1)if__name__=="__main__&q"/> 365:exit(1)if__name__=="__main__&q">
search
HomeJavajavaTutorialMethods and examples of implementing New Year greetings in Java

<code><p><br>from datetime import datetime<br>import pprint<br><br>pp = pprint.PrettyPrinter()<br><br><br>def Happy_New_year():<br>    now = datetime.now()<br>    this_year = now.year<br>    day = 1<br>    while this_year == 2018:<br>        pp.pprint("2018年第{}天: 健康,进步!".format(day))<br>        day += 1<br>        if day > 365:<br>            exit(1)<br><br>if __name__ == "__main__":<br>    Happy_New_year()<br>    <br>    <br></p></code>

The above is the detailed content of Methods and examples of implementing New Year greetings in Java. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:亿速云. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)