Discuss / Python / int('123')

int('123')

Topic source

空城已去

#1 Created at ... [Delete] [Delete and Lock User]

当为int('123.123')即小数时报错 invalid literal for int() with base 10: 因为python假设需要进行int转型的字符串仅仅包含数字


  • 1

Reply