def format_class():
print('Utility class that holds all formating functionality for single locale')
date = datetime.date(1874, 5, 29)
amount = (284.55, 'CNY')
for (name, symbol, params) in LOCALES:
locale = Locale(*params)
fmt = Format(locale=locale)
args = [name]
args.append(fmt.date(date, format='full'))
args.append(fmt.currency(*amount))
print('\tFormats for {0} - date: {1}, currency: {2}'.format(*args))
评论列表
文章目录