# coding: utf-8
import datetime
import locale
def happyNewYear(messaage=u'Happy New Year!'):
d = datetime.date.today()
print '%s %s' % (messaage, d.year)
def main():
locale.setlocale(locale.LC_ALL, '')
loc = locale.getlocale()
if (loc[0] == 'Japanese_Japan'):
happyNewYear('謹賀新年&')
return
happyNewYear()
if __name__ == '__main__':
main()
本年もよろしくおねがいいたします。
今年は巳年、Pythonの年?
コメント
@ishisaka Pythonもいいですな~
Yukio Sugiyama liked this on Facebook.
Kuniteru Asami liked this on Facebook.
Kazutada Ito liked this on Facebook.
Masayuki Ozawa liked this on Facebook.
Jun Kudo liked this on Facebook.
Masakazu Sano liked this on Facebook.