Python debug ValueError: invalid literal for int() with base 10:

>>> int('12.34')
Traceback (most recent call last):
  File "", line 1, in
    int('12.34')
ValueError: invalid literal for int() with base 10: '12.34'
>>> int(float('11.23'))
11

你可能感兴趣的:(Python)