📌  相关文章
📜  ValueError: int() 以 10 为底的无效文字:site:stackoverflow.com - Python 代码示例

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

代码示例1
# Just for the record:
print(int('55063.000000'))

#Traceback (most recent call last):
  #File "", line 1, in 
#ValueError: invalid literal for int() with base 10: '55063.000000'

# use this
print(int(float('55063.000000')))