使用文字的计算器

mathwords的Python项目详细描述


数学单词

大多数人用词。许多人也使用计算器。因此,计算器也应该能够使用单词,这似乎是合乎逻辑的。这个项目的目的是朝这个方向努力。

要在交互模式下启动(使用非常糟糕的repl),请使用python -m mathwords

示例查询:

  • twelve plus three->;fifteen
  • six raised to the power of three->;two hundred sixteen
  • eight minus a billion->;negative nine hundred ninety nine million nine hundred ninety nine thousand nine hundred ninety two
  • one hundred and forty four divided by two to the three->;eighteen
  • eight divided by five->;one point six
  • square root of the common log of ten quadrillion->;four

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何使用java向dropup html/css添加项目   如何从java中的向量向量打印   Java Maven库项目模板   java使用atmosphere api还是直接使用grizzly?   java JComponent仅部分显示   如何将动态值传递给自定义注释,以从Java数据进行映射。性质   java破解已实现方法的返回类型的最佳方法?   java Netbeans在JFrame Gui布局中覆盖图像   spring java仅向登录用户显示注销按钮   java如何对com进行身份验证。谷歌。云bigquery。带有服务帐户的BigQuery`   java禁止空字符串参数和抛出RuntimeException以阻止方法继续的利弊   java分析项目中的所有JAR以获取版本和许可证信息   Java,数据库为什么要分配一个新对象,而我们可以直接将它放入数据库