我以为我可以使用此代码来转换字符串:
str = "3,443" str.replace(",", "") int_num = int(str)
但它不起作用并引发ValueError. 我怎样才能转换这个字符串?
ValueError
python
python ×1