Konvertieren Sie Zeichenfolgen in Zahlen
numparser.py
# -*- coding: utf-8 -*-
import numparser
print int(numparser.numparser('one quadrillion two hundred thousands three'))
print numparser.numparser('six million four hundred thousand five')
print numparser.numparser('$410 million')
print numparser.numparser('50,000,001 to $100,000,000')
print numparser.numparser('Fifty-two Million Five HundredThousand Dollars')
print numparser.numparser('less than $5,000,000.00 (five million dollars')
print numparser.numparser('$50 million $160,000')
1000000000200003 6400005.0 410000000.0 100000000.0 52500000.0 5000000.0 50160000.0
Recommended Posts