In Python, how can I parse a numeric string like \"545.2222\" to its corresponding float value, 545.2222? Or parse the string \"31\" t
\"545.2222\"
545.2222
\"31\"
a = int(float(a)) if int(float(a)) == float(a) else float(a)