📜  带逗号的字符串到 int python 代码示例

📅  最后修改于: 2022-03-11 14:45:09.072000             🧑  作者: Mango

代码示例1
# string with comma to int python

>>> a = '1,000,000'
>>> int(a.replace(',', ''))
1000000
>>>