Python常见报错

ValueError: invalid literal for int() with base 10

使用int函数,但是值是空。

>>> int('')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: ''

  

posted @ 2021-11-22 12:08  竹子与熊猫  阅读(47)  评论(0)    收藏  举报