def my_birthday():
print('My birthday in different locales')
bday = datetime.date(1971, 5, 4)
for (name, symbol, params) in LOCALES:
locale = Locale(*params)
for fmt in ('full', 'medium', 'short'):
print('\t{0} ({1}): {2}'.format(name, fmt, format_date(bday, fmt, locale)))
babel_dates.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录