开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: ValueError: could not convert string to float: b'\xe2\x88\x9e'


 

how about

def safe_float_conversion(value):
    try:
        return float(value)
    except ValueError:
        return None  # or some default value

Join [email protected] to automatically receive all group messages.