Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyton como identificar se é numero

def is_simple_number(value):
    if not value.strip().replace('-', '').replace('+', '').replace('.', '').isdigit():
        return False
    try:
         float(value)
    except ValueError:
         return False
    return True
Source by pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pyton #como #identificar #se #numero
ADD COMMENT
Topic
Name
8+9 =