Heads up! This post was written 13 years ago. Some information might be outdated or may have changed since then.
Една малка функция за проверка дали даден стринг е число
def is_numeric(value):
    return str(value).replace("-", "").replace(".", "").isdigit()
Може да се използва по следния начин:
is_numeric("41.1")

Back to all posts