【发布时间】:2011-03-10 15:28:01
【问题描述】:
pythonistas 如何将数字打印为单词,类似于 Common Lisp 代码:
[3]> (format t "~r" 1e25)
nine septillion, nine hundred and ninety-nine sextillion, nine hundred and ninety-nine quintillion, seven hundred and seventy-eight quadrillion, one hundred and ninety-six trillion, three hundred and eight billion, three hundred and sixty-one million, two hundred and sixteen thousand
【问题讨论】:
标签: python formatting nlp language-comparisons