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("2018年第{}天: 健康,进步!".format(day))
day += 1
if day > 365:
exit(1)
if __name__ == "__main__":
Happy_New_year()
以上就是Java实现新年祝福的方法及示例的详细内容,更多请关注php中文网其它相关文章!
已抢140773个
抢已抢4582个
抢已抢7079个
抢已抢11470个
抢