ValueError: invalid literal for int() with base 10: ''

前端 未结 18 2235
甜味超标
甜味超标 2020-11-22 02:06

I am creating a program that reads a file and if the first line of the file is not blank, it reads the next four lines. Calculations are performed on those lines and then t

18条回答
  •  忘掉有多难
    2020-11-22 03:12

    The reason you are getting this error is that you are trying to convert a space character to an integer, which is totally impossible and restricted.And that's why you are getting this error.

    Check your code and correct it, it will work fine

提交回复
热议问题