def decimal_formating():
print('Formating decimal values')
numbers = (-3.14, 0.12, 2, 9.821, 215.3, 19678.25)
for (name, symbol, params) in LOCALES:
locale = Locale(*params)
args = [name]
for num in numbers:
args.append(format_decimal(num, locale=locale))
print('\tdecimal in {0}: {1} - {2} - {3} - {4} - {5} - {6}'.format(*args))
babel_numbers.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录